gazbert / bxbot

A simple Bitcoin trading bot written in Java.
MIT License
779 stars 275 forks source link

Increase unit test code coverage #98

Closed gazbert closed 4 years ago

gazbert commented 5 years ago

Analysis with JaCoCo on the JDK 11 branch has highlighted some low code coverage in some modules - this needs boosting.

The adapter tests use Powermock and can't be included in the coverage reports as per JaCoCo docs:

"... right now there is NO WAY TO USE PowerMock with JaCoCo On-the-fly instrumentation."

Some of the other things are toString(), equals(), etc... which were generated by the IDE.

Each module will have its own coverage threshold in light of this, but the aim/default should be 80% +.

gazbert commented 4 years ago

Don. See: https://sonarcloud.io/dashboard?id=gazbert_bxbot