Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Navigate to tets displaying coverage when lost in code?
GreenMoose
#1 Posted : Wednesday, February 6, 2019 8:54:11 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
Related to https://ncrunch.uservoic...ge-has-been-set-to-show

So today I got back to work with a vstudio full of gray dots and a NCrunch window "code coverage has been set to show 1 test only" and don't remember which test I had filtered coverage for (I found it without too much of a hassle though).

Is there a neat trick to navigate to that test without first having to find the coverage dots in code?

I just realized a shortcut "Focus next covering test in Test window" would be neat, where if you currently have cursor on a gray dot it selects next arbirary test showing any coverage. Although I guess "focus' would be a new domain term in addition to "pin" which might not be desirable.
Remco
#2 Posted : Wednesday, February 6, 2019 9:31:41 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
This isn't very obvious, but one thing you can do is open up the Metrics Window and look for files with code coverage in them. The Metrics Window should be filtered by this feature in the same way as the code windows.

If you're encountering this situation often, it might be worth using an engine mode that only shows coverage for pinned tests instead of the inline coverage filtering feature. This would probably give you a better UX, but I accept that it would only be possible if you weren't already using pinned tests for something else.
1 user thanked Remco for this useful post.
GreenMoose on 2/7/2019(UTC)
GreenMoose
#3 Posted : Thursday, February 14, 2019 8:21:01 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
FWIW, I added another related feature request which probaly has a smaller impact but would still be very useful (according to me :)): https://ncrunch.uservoic...indow-indicating-if-tes

Quote:

Add overlay icon in Tests window indicating if test is included in UI coverage filter

I would like to easy spot which tests in my test are included in current UI coverage filter.
Given I have a coverage filter set, I would like an icon on the test (e.g. red X with some small overlay icon for a failing test) so I easily can see which tests that are currently used in coverage filter (e.g. when have 20 pinned tests and showing coverage for only 5 of them).


e.g. something like below (but with a more stylish overlay icon :)). (The "25 tests pinned" text feature requests exists here).
coverageOverlayIcons
1 user thanked GreenMoose for this useful post.
Remco on 2/14/2019(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.031 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download