You’ve heard of nCrunch, right? It’s a continuous integration plugin for Visual Studio that tracks changes to your code and then automatically builds and runs your unit tests in the background whilst you type. Once the results are back it decorates every line of code with a red or green light to indicate whether the tests are passing or failing.
Where are you going with this?
Good question. nCrunch is fantastic…for .NET development. I do a fair bit of work in .NET but more and more I find myself working in JavaScript and desperately missing the constant feedback.
So how can we get something similar for our JavaScript tests? By using grunt of course!
GruntJS (which I’ve been playing around with recently) can be setup to run QUnit tests using the headless PhantomJS browser and to feedback the results. In fact, this is all nicely packaged up in the grunt-contrib-qunit package for you, so it’s pretty simple to set up.
Your new post is loading...