Hi Can you try adding camel-management as dependency to your classpath. If I recall then JMX is required for collecting coverage data.
On Thu, Apr 29, 2021 at 9:37 PM Ian Briscoe <ijbris...@googlemail.com.invalid> wrote: > > Hi, > > We're currently using Camel 3.7, Spring Boot 2.3.9 and code our routes > using the Java DSL. Our tests use JUnit 5. > > I'm interested in using the Camel route coverage report. I've followed all > the directions I can find here: > https://camel.apache.org/manual/latest/camel-report-maven-plugin.html. > > However, when I run my tests, I don't see a directory containing code > coverage information in the target directory, even though I have configured > code coverage for all unit tests using the configuration option given in > the docs. I also tried the @EnableCodeCoverage annotation on the test > classes and the system property method of configuring global coverage on > the Maven command line. > > Without that information, the code coverage report simply says, as > expected: No route coverage data found for route: XXXX. Make sure to enable > route coverage in your unit tests and assign unique route ids to your > routes. Also remember to run unit tests first. > > I do have unique route ids for my routes. > > Does anyone know how to get this working? Is it even compatible with > JUnit 5? I'm suspecting it isn't - it would be useful to have it > confirmed, one way or another. > > > Many thanks, > > > Ian Briscoe -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2