Hi Magil,

more wild guessing here: are JUnit 4 tests and JUnit 5 tests mixed in the same 
modules? Or in separate modules with different configuration?

In general we always recommend that you extract a small reproducer (Github 
repository) that demonstrates the problem. So the experts can have a look and 
identify the problem.

Regards,
-marc

> On 17. Jan 2024, at 17:05, Magali Kain <magali.k...@thoughtworks.com> wrote:
> 
> Hi Florian, 
> 
> Yes, tests are being executed.
> 
> On Wednesday, January 17, 2024 at 4:05:39 PM UTC+1 Florian McKee wrote:
>> 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 jacoco+unsubscr...@googlegroups.com 
> <mailto:jacoco+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/5d6a0fac-ee65-4a7d-a7e4-78e4d5acd489n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/5d6a0fac-ee65-4a7d-a7e4-78e4d5acd489n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/0C3D1D71-25C3-45A3-807B-5F04698DFF9F%40mountainminds.com.

Reply via email to