문제

For my project I get a good coverage report by jacoco for the models, but no coverage is shown to the controllers. Is there any configuration option that needs to be applied to jacoco to cover the static methods in the play framework controllers?

This is the command line to launch the automated tests in play with jacoco: $ play-1.2.7/play auto-test PWO -javaagent:../jacoco/lib/jacocoagent.jar

도움이 되었습니까?

해결책

There are some problems with Jacoco, if you combine it with Mockito or Powermock. Maybe it is your case as well:

As far as I think, Jacoco has no problem with static methods or static initializers.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top