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

Notification

Icon
Error

How to clear failed tests/ i.e. remove the last build status?
dariusdamalakas
#1 Posted : Tuesday, March 10, 2015 10:18:09 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 1/10/2013(UTC)
Posts: 42
Location: Lithuania

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
Hi, sorry if this has been asked before.

I have accidentally ran some integration tests, now all of them are showed as failing. I have only 'show failing tests' option enabled. O can ignore failing tests, that will update status message with 'monitoring X tests, failing 0', but is there an option to not ignore them, but simply clear the state of those tests?
Remco
#2 Posted : Tuesday, March 10, 2015 10:57:28 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi,

This option doesn't exist at the moment. The quickest and easiest way to do this is to just change the name of the tests, then change them back again. NCrunch will discard all state and treat them as new tests.

If there are heaps of tests and it isn't sensible to rename them individually, just clear out the NCrunch cache file with the engine disabled to reset all cached information.
1 user thanked Remco for this useful post.
dariusdamalakas on 3/10/2015(UTC)
dariusdamalakas
#3 Posted : Tuesday, March 10, 2015 11:13:41 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 1/10/2013(UTC)
Posts: 42
Location: Lithuania

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
Thanks for the tip, that will do!

If I may to suggest, then i'd actually do a full cleanup when i resync/initialize NCrunch, instead of remembering state
Remco
#4 Posted : Tuesday, March 10, 2015 11:32:25 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
dariusdamalakas;7067 wrote:
Thanks for the tip, that will do!

If I may to suggest, then i'd actually do a full cleanup when i resync/initialize NCrunch, instead of remembering state


Sorry - I'm not sure if you're suggesting NCrunch should behave this way ... I'll answer as though you are :)

Some people have tests with very long/high run times, and the cache data in this situation is extremely valuable, so clearing it out with each engine reset would be a big pain point.
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.029 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download