Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ


Choose your language

InfoQ Homepage News Integrate JavaScript Tests Into Your Development Workflow

Integrate JavaScript Tests Into Your Development Workflow


Chutzpah can run JavaScript tests from inside Visual Studio 2012. And TFS extends this by allowing you to run JavaScript Unit tests into your builds.

Visual Studio 2012 comes with much better unit testing support and supports several open source frameworks through a plugin architecture for test runners. Chutzpah leverages this to bring JavaScript Unit testing within Visual Studio. One interesting thing is that you can mix your C# and .js tests in a single run, instead of having to run them separately. You can read Anatomy of the Chutzpah test Adapter… by Matthew to learn more about how this Test Adapter works or even how to write your own adapter.

Chutzpah supports both QUnit and Jasmine testing frameworks. This article from the Visual Studio ALM team gives more details about how to setup TFS build runners to run these tests.

Note that Chutzpah also supports TeamCity. And if you don’t use TFS or TeamCity for running your builds? You could use the Chutzpah command line api to integrate it into your build server. You can even use other tools such as js-test-driver or PhantomJS

Visual Studio 2012 RC brings several other unit testing improvements as well, such as a continuous test runner, Smart test discovery and several enhancements for Metro Unit Testing. 

Rate this Article