Build/Test Issues

Feature request - triggering SpecFlow test runs

Started by smoove on 6,468 views

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
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
Great - thanks Remco.

Post a reply

Log in to reply.