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

Notification

Icon
Error

Engine mode "Run all tests automatically" running tests when saving Javascript files
Brett
#1 Posted : Wednesday, October 7, 2015 5:07:24 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/28/2014(UTC)
Posts: 2
Location: United States of America

Thanks: 1 times
It appears that when I save changes to my javascript files, that NCrunch re-runs all the C# tests. Since my JS files are in my .Web project, NCrunch runs all the tests in my .Web.Tests project.
This is with the engine mode "Run all tests automatically."

Is there a way to disable this behavior? Since we're now doing a lot of javascript and NCrunch keeps kicking in even if its not necessary.
Remco
#2 Posted : Wednesday, October 7, 2015 10:30:23 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,

Adding '*.js' to your 'Files Excluded From Auto Build' project-level configuration setting should resolve this - http://www.ncrunch.net/documentation/reference_project-configuration_files-excluded-from-auto-build.
1 user thanked Remco for this useful post.
Brett on 10/8/2015(UTC)
Brett
#3 Posted : Thursday, October 8, 2015 12:44:58 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/28/2014(UTC)
Posts: 2
Location: United States of America

Thanks: 1 times
Thanks that works! in the future can this be built in, or at least computer wide? You've stated you don't plan on making NCrunch work with JavaScript tests, so perhaps it should be built-in to exclude *.js and *.ts and maybe even .html and .css
Remco
#4 Posted : Thursday, October 8, 2015 8:14:39 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)
Brett;7827 wrote:
Thanks that works! in the future can this be built in, or at least computer wide? You've stated you don't plan on making NCrunch work with JavaScript tests, so perhaps it should be built-in to exclude *.js and *.ts and maybe even .html and .css


At the moment, NCrunch doesn't discriminate on file types. The feature you're using now is actually intended to be the 'built in' solution to this for people wanting to reduce their build load.

Sometimes people use javascript checkers in their build steps, so the auto build can actually be very helpful in some cases.
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.032 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download