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

Notification

Icon
Error

Navigate previous/next broken test using keyboard shortcuts
ylee
#1 Posted : Saturday, March 24, 2012 10:17:52 AM(UTC)
Rank: Member

Groups: Registered
Joined: 2/15/2012(UTC)
Posts: 20

Thanks: 6 times
Was thanked: 3 time(s) in 3 post(s)
Hi,

Resharper has 2 very handy features that help quickly fix compile errors:
1. Navigate previous/next errors using keyboard shortcuts (Resharper uses Alt+Shift+PageUp/PageDown);
2. Display errors of current file besides the vertical scrollbar:


It would great if NCrunch has similar features help quickly fix broken tests.
Remco
#2 Posted : Saturday, March 24, 2012 9:32:52 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)
Hi Ylee -

I've been thinking a bit about this feature, particularly the navigation one.

The interesting question around this is what should be considered a failure point. Naturally NCrunch has information on both build failures and test failures, and the navigation to a failing test could be one or all of the below:

1. The deepest point in the call stack of an exception thrown
2. Any other point in the call stack (an X shown on the markers)
3. The beginning of a test that is failing

I guess the main difference between analysing a test failure and analysing a build failure is that build failures are usually very local. When you have a failing build, it's usually possible to highlight the one area that is causing the problem and give it meaning within a small context. In order to analyse a test failure, you really need to know what the test is doing and how it arrived at a particular result.

What are your thoughts on this?
1 user thanked Remco for this useful post.
ylee on 3/24/2012(UTC)
ylee
#3 Posted : Saturday, March 24, 2012 11:42:07 PM(UTC)
Rank: Member

Groups: Registered
Joined: 2/15/2012(UTC)
Posts: 20

Thanks: 6 times
Was thanked: 3 time(s) in 3 post(s)
Thanks for your detailed reply, Remco.

Sorry, but I don't have much experience in software development, so I'm afraid I cannot evaluate the technicalities.

But for the 3 choices, I vote for #3: beginning of a test that is failing :)
1 user thanked ylee for this useful post.
Remco on 3/25/2012(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.024 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download