vendredi 14 septembre 2018

Jacoco plugin does not report coverage for renamed integration test class

Let me show you the problem on following use case:

Let's assume I have class Example and want to use unit and integration test for that. Once the unit tests in file ExampleTest (with methods annotated by @Test) is done, coverage report displays correct result. Once the integration tests in file ExampleIntTest (with methods annotated by @Test) is done, coverage report does not display correct result. As if the class was excluded from coverage process.

That means if I have just integration tests for Example class then I cannot see correct result in coveraging by jacoco.

Is there some way how to keep that ExampleIntTest class to be coveraged similarly like in case for unit test? I would like to keep the same name.

Aucun commentaire:

Enregistrer un commentaire