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

Notification

Icon
Error

Visual Cue on test re-run
adean
#1 Posted : Friday, May 11, 2012 10:39:16 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/5/2012(UTC)
Posts: 8

Thanks: 1 times
When I have a failing test that I am editing, I seem to find myself asking "has it re-run my tests?" as it is not clear if the red fail is from the original code or the new code due to the latency of test execution, so I find myself running TestDriven.NET to see what's going on for sure.

I think that the user experience would be better if the colour dots were flicked back to black immediately before the re-run and then show the outcome as normal. This would provide a clear visual cue that the tests have re-run.
Remco
#2 Posted : Saturday, May 12, 2012 12:31:03 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
NCrunch does show this, though I'm not sure how obvious this is in the documentation and its visibility may depend upon your colour scheme.

Basically NCrunch will fade the markers that are covered by any tests for which the results may not be current. You'll notice that as soon as you make a change to the codebase, all the markers will immediately fade out with a partial transparency to show that their results may no longer be current. As soon as all tests that cover a particular line have been executed against the latest version of the source code, the marker will no longer show as partially transparent.

There are other places that NCrunch will also show this information. In the corner spinner, the number in the centre of the spinner will show as faded if it describes information that may be out of date. The Tests Window will also show tests with a question mark icon if their results are not current with the latest version of the codebase, and any text shown in the output window pane on the bottom of the Tests Window will also be a lighter shade of grey.

Sometimes if you are working in a small codebase with very fast running tests, the effect can be difficult to notice because NCrunch is able to execute the tests very quickly. If you think this may apply to you, try adding a Thread.Sleep(5000) into one of your tests so that you can observe how NCrunch handles it.
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.030 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download