简体   繁体   English

QUnit共享器-参考文件

[英]Resharper with QUnit - Reference Files

When I am running QUnit tests with Resharper, they are failing with a message which indicates jquery-ui has not been loaded. 当我使用Resharper运行QUnit测试时,它们失败,并显示一条消息,指示尚未加载jquery-ui。

When I inspect the HTML for Resharper's test page, I see that it has loaded jquery twice, once before jquery-ui, and once after. 当我检查Resharper的测试页的HTML时,我发现它已经两次加载了jquery,一次在jquery-ui之前,一次在之后。

I have removed all "reference path" lines from my test javascript file, but it seems that Resharper is somehow caching these references. 我已经从我的测试javascript文件中删除了所有“引用路径”行,但是似乎Resharper以某种方式缓存了这些引用。

Does anyone know how I can resolve this? 有谁知道我该如何解决?

Thanks 谢谢

I fixed this problem (ie refreshed the references) by right clicking on Solution Explorer and selecting "Run Tests", as opposed to rerunning tests from the 'Unit Test Sessions' window. 通过右键单击解决方案资源管理器并选择“运行测试”,而不是从“单元测试会话”窗口中重新运行测试,我解决了此问题(即刷新了参考)。 The resharper plugin seems slightly buggy. Resharper插件似乎有点问题。 Other issues I have had have been resolved by restarting Visual Studio. 通过重新启动Visual Studio,已经解决了我遇到的其他问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM