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

Notification

Icon
Error

File Change Dependancy
randomsolutions
#1 Posted : Wednesday, December 18, 2013 11:48:19 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/18/2013(UTC)
Posts: 9
Location: United States of America

Was thanked: 1 time(s) in 1 post(s)
Hello, I was wondering if there was a way to tell ncrunch to re-run a test when a file changes.

For instance, say I have a .sql file and a simple test that just executes that sql file to see if it throws an exception or not. I'd like to have ncrunch automatically run the test whenever I save the sql file.

Hope that makes sense.

Thanks for an amazing product!
Remco
#2 Posted : Thursday, December 19, 2013 12:18:03 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,986

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi, thanks for posting!

NCrunch will automatically track changes to any file included in any of your projects.

If you include the .sql file in a project being watched by NCrunch (for example, in the .proj XML), it will automatically detect when you make changes to the file in the IDE and will re-run tests. If the file is opened outside the IDE, NCrunch will detect when it has been changed on the file system and will re-run tests.

You may also wish to have a look at the Additional files to include configuration setting, which gives you another way to include files to be watched by NCrunch. Depending upon your needs, you may find this more convenient than changing a project file.


Cheers,

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