mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
e34c4505d4
* Convert CurrencyUnit and LnCurrencyUnit Scalacheck to Scalatest * Add Int and Long syntax to LnCurrencyUnit, MilliSatoshis and CurrencyUnit * Tweak toString methods |
||
---|---|---|
.. | ||
src/test | ||
build.sbt | ||
README.md |
Running tests
To run the entire core
test suite:
chris@chris:~/dev/bitcoins-core$ sbt coreTest/test
# lots of output, should end up with something like this
[info] All tests passed.
[info] Passed: Total 1008, Failed 0, Errors 0, Passed 1008
[success] Total time: 38 s, completed Dec 23, 2018 4:39:58 PM
Coverage
To produce a report that quantifies how much of our code is covered by tests:
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.