TeamCity Jacoco offline mode
Hi. To solve issue regarding 0% coverage if test used Powermockito Annotation with target class
@PrepareForTest(ClassToBeTested.class)
publick class ClassToBeTestedTest{
}
To solve it Powermockito suggest to switch to offline mode https://github.com/powermock/powermock/wiki/Code-coverage-with-JaCoCo#offline-instrumentation
But how to apply it on TeamCity
Please sign in to leave a comment.
Hello
Currently offline jacoco instrumentation is not supported in TeamCity coverage plugin. You can try collecting jacoco coverage manually and then import data to TeamCity with a service message.