0% code coverage jacoco4sbt 2.0.0, sbt 0.12.2

I have a sbt scala project, but in fact I only have Java code, and I use junit for testing. I added the jacoco4sbt 2.0.0 plugin, but I am in the following situation:

in project_folder / src / test / java I have the following test packages: FTEST, map, Util

  • When I run sbt test, all my tests run and compile (55 in total)
  • When I run jacoco: the sbt cover runs only 13 tests included in the utility package and has a percentage greater than 0 in my jacoco html report, the rest of the ftest and map package testing have 0% coverage.

Any idea why this is happening?

Thanks!

+4
source share
1 answer

, . sbt junit, junit- build.sbt . , junit-interface 0.9, , jacoco, , junit-interface 0.8.

0

All Articles