Running Unit Tests in a TFS Build

Follow the directions shown on this blog post Javascript Unit Tests on Team Foundation Service with Chutzpah

FAQ

  • How can I get my Chutzpah to run test files besides *.js ones?

You need to include a test settings file indicating what file type you want to run. By default it assumes only .js but if you would like Chutzpah to run more add a testing.runsettings file with the following content and add it to your build/test run configuration.

<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
 <ChutzpahAdapterSettings>
   <TestingMode>All</TestingMode>
 </ChutzpahAdapterSettings>
</RunSettings>


  • How can I enable Chutzpah tracing on the build server?

You need to set the EnableTracing flag in the .runsettings file:
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
 <ChutzpahAdapterSettings>
   <EnabledTracing>True</EnabledTracing>
 </ChutzpahAdapterSettings>
</RunSettings>


When this is set Chutzpah will create a chutzpah.log file in the %temp% directory.

Last edited Mar 4, 2014 at 3:42 PM by mmanela, version 6