IntelliJ Code Coverage: how to know which unit tests covered lines in source code

Viewed 382

I'm pretty new to this awesome feature of IntelliJ. When I run code coverage, I can see in the IDE green marks that indicate whether the line was covered and red marks that indicate whether this line was not covered. It's great. But I want to see what were the unit tests that covered these lines.

When I click the green marks, I only see number of hits:

enter image description here

Do you know how to see it?

1 Answers

At first you need to enable the "Tracing" in Run configuration: enter image description here

Then you may use "Show tests covering line" button: enter image description here

Related