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.
Daily Usage Issues
Engine mode "Run all tests automatically" running tests when saving Javascript files
Started by Brett on 6,933 views
Remco NCrunch Developer
#7823
07 Oct 2015 22:30 UTC
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.
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.
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 NCrunch Developer
#7828
08 Oct 2015 20:14 UTC
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.