0

Right now I use Jacoco to know the coverage of the whole test suite, but I would need to break down the coverage information by test case.

I need to create a program that does this since we need to automate a large suite. I guess this should be done by using the API...

Is there a way of doing this? I'm new to Jacoco, please help.

3
  • Hi, Did you did you find an option. Even I wanted the same Commented Jun 21, 2015 at 8:49
  • I had to create a surefire provider to do so: github.com/marcelinorc/junco-provider. Please let me know if you find it useful and report any bugs. Cheers! Commented Jun 21, 2015 at 10:14
  • Thanks, I am with TestNG. But this is really helpful Commented Jun 25, 2015 at 7:47

1 Answer 1

1

The TestNG plug in for Eclipse allows you to select and run an individual test case. You can then inspect the result of running that particular test case.

However, there does not seem to be a way to, for instance, click on a single line of code and query what test cases visited that line.

What other use cases did you have in mind?

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you @Bob Dalgleish. I have updated my question to be more clear. I need it to create a program that does it. I'll see if the TestNG plugin code is available and i'll take a look at it. I upvoted your answer anyway. Thanks again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.