Related to https://ncrunch.uservoice.com/forums/245203-feature-requests/suggestions/36517831--pin-tests-link-in-coverage-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.
Daily Usage Issues
Navigate to tets displaying coverage when lost in code?
Started by GreenMoose on 2,303 views
Remco NCrunch Developer
#13038
06 Feb 2019 21:31 UTC
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.
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.
FWIW, I added another related feature request which probaly has a smaller impact but would still be very useful (according to me :)): https://ncrunch.uservoice.com/forums/245203-feature-requests/suggestions/36849133-add-overlay-icon-in-tests-window-indicating-if-tes
e.g. something like below (but with a more stylish overlay icon :)). (The "25 tests pinned" text feature requests exists here).
[img=https://i.imgur.com/MsKCNrX.png]coverageOverlayIcons[/img]
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).
[img=https://i.imgur.com/MsKCNrX.png]coverageOverlayIcons[/img]
Edited 14 Feb 2019 08:22 UTC
Post a reply
Log in to reply.