gradle-cobertura-plugin icon indicating copy to clipboard operation
gradle-cobertura-plugin copied to clipboard

Spring boot app startup within functional tests can cobertura calculate coverage?

Open daveyleo opened this issue 8 years ago • 0 comments

I have a gradle spring boot application with unit tests, and functionalTest Test task that starts up the spring boot application by spawning another gradle process to run the bootRun task, once started it then executes the functionalTests which call the rest endpoints on the spring boot app and assert the responses, kills the spawned process when finished.

This works perfectly and quite reliably, however the cobertura plugin does not report any code coverage for my functionalTests only my unit tests.

Is there a way I can configure this to get the bootRun started process to update the .ser file (use the instrumented_classes) ?

Any help here would be appreciated.

daveyleo avatar Jun 12 '17 21:06 daveyleo