JavaScript Unit Tests with Team Foundation Server Build

jasmine, javascript, tfs, tfsbuild

Solution

The way I've seen this done is using the Chutzpah Test Runner available on CodePlex: http://chutzpah.codeplex.com/

This allows you to run Jasmine/QUnit tests from a command-line which can then be easily integrated with a TFSBuild using the InvokeProcess Activity.

Problem

We are using Team Foundation Server 2010 and we have some JavaScript unit tests running on our local machines using Jasmine. We are using the workflow based builds. Has anyone had any success running Jasmine tests during their builds? Can you break the build if the Jasmine tests fail?

Original source