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

Notification

Icon
Error

Feature request - triggering SpecFlow test runs
smoove
#1 Posted : Monday, September 30, 2013 9:35:55 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/27/2013(UTC)
Posts: 5
Location: United Kingdom

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Hi Remco,

SpecFlow uses a .feature file and a .feature.cs file, which is automatically generated by the VS plugin when the .feature file is saved. When you edit the .feature file, NCrunch will detect this in-memory edit and immediately run the test. This will be before you have saved the .feature file, and therefore before the .feature.cs file has been regenerated. Therefore NCrunch will be running the "old" version of the test from the original .feature.cs file.

Would it be possible to /not/ run SpecFlow tests until the backing .feature.cs file has been updated?

Thanks,

Dan
Remco
#2 Posted : Monday, September 30, 2013 11:26:50 AM(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 Dan,

Great to hear from you!

There's been several requests for the ability to specify a wildcard for project files that don't trigger NCrunch's build and test logic. I don't see why this same feature couldn't be used for .feature files. Delivery date is uncertain but I'll see what I can do :)


Cheers,

Remco
smoove
#3 Posted : Monday, September 30, 2013 11:48:25 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/27/2013(UTC)
Posts: 5
Location: United Kingdom

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Great - thanks Remco.
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.023 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download