stevesaliman / gradle-cobertura-plugin

Gradle Cobertura Plugin
118 stars 50 forks source link

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

Open daveyleo opened 7 years ago

daveyleo commented 7 years ago

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.