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

Notification

Icon
Error

Reset/Clear coverage easily?
GreenMoose
#1 Posted : Friday, January 31, 2020 6:57:45 PM(UTC)
Rank: Advanced Member

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

Thanks: 131 times
Was thanked: 62 time(s) in 60 post(s)
Hi.

I cannot seem to find a way to clear current coverage without deleting NCrunch cache directory and restart vstudio, isn't that possible?

Background: I had x tests under a fixture class, including static one-time initializations, and I wanted to only see coverage from 1 test from that fixture. Filtering on coverage for fixture itself included other tests in earlier test executions so wanted to "clear everything" and only run that specific test.

Thanks.
Remco
#2 Posted : Friday, January 31, 2020 11:43:06 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,049

Thanks: 787 times
Was thanked: 1023 time(s) in 974 post(s)
Hi, thanks for posting.

We don't have any feature built in that can specifically do this right now. The closest thing I can think of would be to turn off the 'Instrument output assembly' setting at a solution level, wait for the engine to reset, then turn it back on again.
1 user thanked Remco for this useful post.
GreenMoose on 2/1/2020(UTC)
GreenMoose
#3 Posted : Sunday, February 2, 2020 7:15:30 AM(UTC)
Rank: Advanced Member

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

Thanks: 131 times
Was thanked: 62 time(s) in 60 post(s)
It seems to have worked out fine, but.. After toggling the "Instrument output assembly" option at solution level, the starting point indicator of tests do not seem to re-appear, not even after I run the tests and I can no longer use shortcut "pin covering tests to test window" (it executes it seems but does not pin the test), so I had to restart vstudio anyhow.

Screenshot

screenshot2
Remco
#4 Posted : Sunday, February 2, 2020 10:18:39 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,049

Thanks: 787 times
Was thanked: 1023 time(s) in 974 post(s)
GreenMoose;14416 wrote:
It seems to have worked out fine, but.. After toggling the "Instrument output assembly" option at solution level, the starting point indicator of tests do not seem to re-appear, not even after I run the tests and I can no longer use shortcut "pin covering tests to test window" (it executes it seems but does not pin the test), so I had to restart vstudio anyhow.


Seems like a bug to me. I'll take a deeper look at this. Thanks for letting me know.
1 user thanked Remco for this useful post.
GreenMoose on 2/3/2020(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.036 seconds.