Wild guess: Can you confirm that the tests are being executed? I've seen a lot of projects that forget to add the JUnit Vintage Runner when mixing JUnit 4 and JUnit 5. As a result, the JUnit 4 tests are silently ignored.
See: https://junit.org/junit5/docs/current/user-guide/#migrating-from-junit4 Florian On Wednesday, January 17, 2024 at 1:19:22 AM UTC-6 Magali Kain wrote: > Hello, > > I am using Jacoco 0.8.11, Camel 3.20, and Spring Boot 2.7.18. When I run > the task to check the project's coverage, the unit tests using JUnit 4 are > not being accounted for, whereas those written in JUnit 5 are. I would like > to clarify that these tests do not validate exceptions. > > Any idea why the tests with JUnit 4 are not being counted? > > Thanks in advance, > Magali > -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/eb0b0c18-e7b7-4984-847d-f1db0fe5bc3en%40googlegroups.com.
