You can have a look at the implementation of PIT (https://pitest.org/ <https://pitest.org/>). If I remember correctly, they select test cases based on the individual coverage.
> Am 07.07.2022 um 14:42 schrieb Marc Hoffmann <[email protected]>: > > Hi, > > JaCoCo is completely framework agnostic and has no idea about the scope of a > JUnit test case. Therefore JaCoCo does not offer per-test coverage. > > Technically this can be done by running each test individually and create a > coverage report for every test. But I assume that this will result in an > enormous amount of data. > > Regards, > -marc > >> On 7. Jul 2022, at 09:40, Shishir Kumar <[email protected] >> <mailto:[email protected]>> wrote: >> >> Hi, >> How can I get the list of test classes that covered/exercised a java source >> class. Is it possible to get this info in the JaCoCo code coverage report >> (html or xml)? I want to use this info to map tests to source code and use >> it for test selection. >> I have no prior experience with JaCoCo. Any help would be greatly >> appreciated. >> Thanks >> >> -- >> 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] >> <mailto:[email protected]>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jacoco/671d157a-1c1d-4a74-ad2e-9d1fb88ddea1n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jacoco/671d157a-1c1d-4a74-ad2e-9d1fb88ddea1n%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 [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/0070193B-71A3-47B0-8F58-95AB4B8264D4%40mountainminds.com > > <https://groups.google.com/d/msgid/jacoco/0070193B-71A3-47B0-8F58-95AB4B8264D4%40mountainminds.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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/499E30A9-3EC6-4619-86F6-7651EEBFF9B7%40gmail.com.
