JSTest.NET at gos.i
Embed this image by adding following code in your web-page.
  <a href="http://getopensource.info/jstest.net" title="JSTest.NET at getOpenSource.info">
    <img src="http://getopensource.info/jstest.net/svg/jstest.net.svg" alt="JSTest.NET at gos.i" />


Browserless JavaScript Unit Test Runner

JSTest.NET enables JavaScript unit tests to be run directly in the test framework of your choice (MSTest, NUnit, xUnit, etc) and all without the need for a web browser. JSTest.NET utilizes the Windows Script Host (CScript) to run fast, fully debuggable JavaScript unit tests!

JSTest.NET is a lightweight managed wrapper around the Windows Script Host (CScript.exe) available on any Windows machine. Other libraries for unit testing JavaScript require that you have either the Java JVM installed locally (as well as on your build server) as well as require an interactive UI (i.e., run one or more browsers to actually run unit tests). JSTest is focused on testing JavaScript, and NOT on UI validation. Unlike tools like JsTestDriver etc, JSTest can be run inside the unit testing framework of your choice; specifically MSTest, NUnit, xUnit etc.

In order to help simplify unit testing of your JavaScript code, JSTest has several common mocking libraries embedded for ease of use (JsHamcrest, JsMockito, JsMock, Json2, etc). Simply choose the desired library or libraries to mock out your classes (and browser!) and you are good to go. Since all JavaScript unit tests are run from within Visual Studio, simply launch a unit test in the debugger to enable debugging of your JavaScript as well.

In terms of performance, JSTest will run 1,000 typical JavaScript unit tests in approximately one minute on an Intel Core 2 Duo E8500 machine.