Hi Sridhar, JaCoCo does not support this out of the box.
Sonarqube used to provide a "per test coverage" view for JaCoCo: https://docs.sonarqube.org/display/PLUG/Usage+of+JaCoCo+with+Java+Plugin Basically what you need to do to implement such a feature on your own: - Hook into your test framework (e.g. with a JUnit execution listener) - Dump and reset exec data after every test - Do coverage analysis for every test - Combine the coverage data to see which test contributed to which line. Cheers, -marc On 2018-05-02 02:35, [email protected] wrote:
Hi Team, We have a need where we need to know which were the list of test cases that covered a specific lines in a given class. is it possible to track that kind of information in jacoco? We want to get the list of test cases that covered a specific method in a given class so that, we will run only those test cases if that method is modified in future for regression. Can you please provide the details? Thanks, Sridhar
-- 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/c01d0d77b3ecb0712a355d7f96991a61%40mountainminds.com. For more options, visit https://groups.google.com/d/optout.
