Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easy way to integrate Jasmine JavaScript unit testing with TFS Build CI

I've been writing JavaScript unit tests using Jasmine. However, those tests run inside a browser, not as part of MSTest.

I want my TFS Continuous Integration builds to break when a JavaScript unit test fails. I know there is a solution for this in Visual Studio 2012, but I'm on 2010 (and will be for a long time in the future probably).

Is there an easy way to integrate Jasmine based JavaScript unit tests with TFS Build?

like image 942
user1147862 Avatar asked Jul 12 '12 05:07

user1147862


People also ask

Is Jasmine a unit testing framework?

Introducing JasmineJasmine is a very popular JavaScript behavior-driven development (In BDD, you write tests before writing actual code) framework for unit testing JavaScript applications. It provides utilities that can be used to run automated tests for both synchronous and asynchronous code.


1 Answers

The Chutzpah test runner enables you to run your QUnit and Jasmine JavaScript unit tests from the command line or Visual Studio.

Therefore you should be able to integrate it into your TFS build via the InvokeProcess activity.

like image 189
Diemo Avatar answered Oct 17 '22 06:10

Diemo