I use Visual Studio 2012 and ReSharper 8.2 to test my JavaScript code. Using QUnit works perfectly so far, when writing Jasmine tests the tests don't stop when the following line is added at the beginning of the file:
/// <reference path="../lib/jasmine.js" />
When I remove it, the tests stop soon, as it should be. I would like to keep this line though so VS knows the syntax of the Jasmine commands. It doesn't matter whether I use phantom.js or not. The behaviour is the same.
According to http://www.philliphaydon.com/2013/10/running-javascript-unit-tests-in-visual-studio-with-jasmine-and-resharper/ and Jasmine + Pahtom.js + ReSharper : Test session don't stop after execution and Why does adding a reference to jasmine.js break my ReSharper test? I am not the only one with the problem. The first page says to use Chutzpah, the second doesn't give an answer and the third one seems to have the problem due to the Angular framework.
Chutzpah might be a workaround, but I'd like to stick to the ReSharper solution instead of adding another library.
Does anybody know an answer to this problem?