Grails - Run unit test and integration tests with coverage at the same time

Answered

Hey guys, messed with this for a while and didn't get anywhere. I have a grails 3.2.x application with both unit and integration tests. I can run either set with code coverage by right clicking on the corresponding test folder (src/test/ or /src/integration-test) and choosing "run all with coverage", but I cannot do so by right clicking on the parent folder (src/). I messed with the runtime config for a while and tried to run by folder or by package, but never got it to work.

Am i missing something obvious here - I should be able to do code coverage on both test phases in the same report right? This seems to work ok on our jenkins box with cobertura.

0
2 comments

Did you check https://stackoverflow.com/questions/11469122/run-unit-tests-in-intellij-idea-from-multiple-modules-together?

What's the problem with all in package option? Can you share a sample to reproduce?

1
Avatar
Permanently deleted user

Thanks for the lightning fast response. Must have missed a crucial step when I tried it before, the stack overflow you linked did the trick on the first try. Thanks!

0

Please sign in to leave a comment.