Karma for Visual Studio?

roufamatic picture roufamatic · Oct 1, 2013 · Viewed 8.5k times · Source

I'm a big fan of continuous testing products like Infinitest. Lately I've been doing more JavaScript development, and was looking for something similar for Visua Studio that will run my Jasmine tests immediately after saving a file. Mighty Moose looks like it's just for .NET code. I do like the idea behind Karma, but ideally it would integrate well with Visual Studio 2012.

Is there such a beast?

Answer

Danny Tuppeny picture Danny Tuppeny · Mar 9, 2014

I've created a Visual Studio extension you might find useful if you want to use Karma. You basically use Karma as normal, but with an XML reporter enabled; and then a VS extension that watches that XML file and displays the results in the Test Explorer window.

There's a video of it in action (along with text instructions) on my blog: http://blog.dantup.com/2014/03/cross-browser-javascript-testing-with-karma-and-visual-studio/

Feedback welcome!