Daily Usage Issues

Engine mode "Run all tests automatically" running tests when saving Javascript files

Started by Brett on 6,933 views

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.
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
Brett 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.

Post a reply

Log in to reply.