Jasmine tests in Resharper don't stop executing

喜欢而已 提交于 2019-12-24 08:18:54

问题


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?

来源:https://stackoverflow.com/questions/23131548/jasmine-tests-in-resharper-dont-stop-executing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!