Question

I'm a big fan of the continuous testing setup offered by NCrunch in Visual Studio, and would love to have a similar setup with nodejs.

When writing JavaScript in node I use Sublime Text 2 as my editor, with tests written using Mocha.

I wondered if there was software (or a ST2 plugin) for achieving similar concurrent testing to that offered by NCrunch when writing .NET code?

Was it helpful?

Solution

After doing some digging around I've decided that the solution for the moment is:

Server-side: Mocha

mocha -w test

Using mocha's built-in watch functionality.

Client-side: Testacular

I'm now using testacular, which is truly awesome. It would be great it if had hooks for running the server-side watch progress in tandem, but not really a problem.

OTHER TIPS

I haven't tried it myself yet but it looks promising: wallaby.js The description from the website has the following description

Wallaby.js is an intelligent test runner for JavaScript that continuously runs your tests. It reports code coverage and other results directly to your code editor immediately as you change your code. Wallaby.js uses various tricks to run your tests as fast as possible, such as dependency analysis to only execute tests affected by your code changes and parallel test execution.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top