bitcoin-s/core-test/README.md

25 lines
716 B
Markdown
Raw Normal View History

[ ![Download](https://api.bintray.com/packages/bitcoin-s/bitcoin-s-core/bitcoin-s-core-test/images/download.svg) ](https://bintray.com/bitcoin-s/bitcoin-s-core/bitcoin-s-core-test/_latestVersion)
## Running tests
To run the entire `core` test suite:
```bash
2019-05-30 16:02:03 +02:00
chris@chris:~/dev/bitcoins-core$ bloop test coreTest
```
## Coverage
To produce a report that quantifies how much of our code is covered by tests:
```bash
sbt
> coverage
> coreTest/test
> core/coverageReport
```
This generates three different reports: Cobertura, XML and HTML formats.
See the output of your sbt shell to find the location of them.
Open up the HTML file in your browser. You'll now see code coverage
of all files in `core` project.