I'm using Scoverage on a Scala project with ScalaTest, using the scalatest and scoverage plugins.
On our our build (mvn clean install), our tests run twice. Once from scalatest and once again from the scoverage check task.
I've been looking to see if there is a way to get the coverage report without re-running the tests or run the tests only with the coverage report. As far as I have been able to tell, this is not possible. The check task invokes test lifecycle phase, so I need my tests to run as part of the test phase independently of scoverage and allow scoverage to invoke the same in order generate the coverage statistics.
I thought I would check though, is it possible to run my tests and get the coverage report with a single test run with the maven plugin?