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

Notification

Icon
Error

Automatically select first broken test in NCrunch Tests Window
R.Bittner
#1 Posted : Tuesday, July 17, 2012 5:26:38 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/17/2012(UTC)
Posts: 5
Location: 127.0.0.1

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
usually when I'm TDDing, I will create a failing test and then make it pass. It'd be uberhelpful if the NCrunch Tests window would select the first failing test so the details of the failure are shown as soon as it fails. Or at least make it an option.

If it's already there, I'm too thick to find it, and if someone could enlighten me, that'd be wonderful.

Dankedanke.
Remco
#2 Posted : Wednesday, July 18, 2012 4:26:06 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for posting!

This feature has been requested a few times and is pending in the backlog for the next release (1.41b). If all goes well, you should see it soon :)


Cheers,

Remco
R.Bittner
#3 Posted : Wednesday, July 18, 2012 11:49:58 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/17/2012(UTC)
Posts: 5
Location: 127.0.0.1

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
I didn't see it in the forums. Sorry for the duplicate request.

And thanks... NCrunch has made life geometrically easier.
1 user thanked R.Bittner for this useful post.
Remco on 7/19/2012(UTC)
Remco
#4 Posted : Monday, August 13, 2012 4:43:16 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
For anyone interested, 1.41b has just been released including the above feature.
R.Bittner
#5 Posted : Wednesday, September 5, 2012 12:23:58 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/17/2012(UTC)
Posts: 5
Location: 127.0.0.1

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
Maybe I'm blind, but I can't find the option to enable this. I see you added the "select most relevant node, but it doesn't seem to be working with mine. I've included a short video to demonstrate: http://screencast.com/t/Z18R2qE1m7

Thanks so much for any help.
Remco
#6 Posted : Wednesday, September 5, 2012 9:18:30 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for posting!

The auto node selection happens when no existing nodes are selected in the list, and the list is then updated by NCrunch. The main use case would be if you had an empty list of tests/projects, then made a change that caused one of them to fail and appear in the list. You'll probably never see this if you have the 'Show passing tests' option turned on, as you'll end up always having something selected.

It would be great if you could share some more details about whether you see a more intuitive way to handle this. It's a new feature, so I'll accept that it may need some fine tuning.


Cheers,

Remco
1 user thanked Remco for this useful post.
R.Bittner on 9/6/2012(UTC)
R.Bittner
#8 Posted : Thursday, September 6, 2012 2:00:42 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/17/2012(UTC)
Posts: 5
Location: 127.0.0.1

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
Ahh.. gotcha. I turned off the passing tests and it worked as expected. Thanks...
1 user thanked R.Bittner for this useful post.
Remco on 9/6/2012(UTC)
R.Bittner
#9 Posted : Friday, September 7, 2012 7:28:47 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/17/2012(UTC)
Posts: 5
Location: 127.0.0.1

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
I do actually have a suggestion for "choosing" which broken test to display. If there are two failing tests, would it be possible to display the one that is in the current context (i.e. the one that I'm editing). Or maybe the one that was most recently changed? Lots of times, I'll make a change and tons of stuff will blow up, then I'll start working on either the test or the production code until it works, but it's the last test I modified that is the one I'm interested in.
Remco
#10 Posted : Friday, September 7, 2012 10:07:19 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
This makes good sense. It's a bit trickier to do (as it involves a bit more bouncing around with the VS integration), but I can see the benefit. Thanks for the suggestion.
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.043 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download