2019-01-08 16:29:06 +01:00
|
|
|
[ ![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)
|
2019-03-14 17:39:45 +01:00
|
|
|
|
|
|
|
## 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
|
2019-03-14 17:39:45 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## 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.
|