Skip to content

Commit

Permalink
Update readme with steps to run coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsieland committed Aug 28, 2024
1 parent ad7b84d commit d647534
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,33 @@ For your convience, you can run the morphir-runtime tests using the following co
./build.sh test-runtime-jvm
```

#### Test Coverage

Before checking test coverage, ensure that all tests have been run using the following command:

```bash
./mill __.test
```

##### HTML Coverage Report

To generate a human-readable coverage report, run the following command:

```bash
./mill scoverage.htmlReportAll
```

To view the resulting coverage report, open `out/scoverage/htmlReportAll.dest/index.html`

##### XML Coverage Report

To generate an XML coverage report, run the following command:

```bash
./mill scoverage.xmlReportAll
```

The report will be generated at this location `out/scoverage/xmlReportAll.dest/scoverage.xml`

#### Formatting Scala Code

Expand Down

0 comments on commit d647534

Please sign in to comment.