I use the sbt
plugin scoverage to generate test coverage reports for my scala project. However, I'm unable to combine the test reports for unit tests and integration tests.
Here are the commands I run
sbt coverage test // to run unit tests
sbt coverage it:test // to run integration tests
sbt coverageReport // to generate coverage report
In the case above, I only get the coverage report for integration tests.
Question
Thanks in advance.
The issue was that I was running sbt clean
after running the unit tests and before running the integration tests.
So, the commands as listed above, should generate the combined coverage report.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With