使用Resharper 7测试运行器进行Jasmine测试的堆栈跟踪 [英] Stack trace for Jasmine test with the Resharper 7 test runner
问题描述
如何让Resharper 7测试运行器显示Jasmine测试的堆栈跟踪。
How do you get the Resharper 7 test runner to show the stacktrace for Jasmine tests.
我的设置是Resharper 7(内置Jasmine)testrunner和PhantomJs。执行任何失败测试时,错误消息始终以:
My setup is Resharper 7 (build in Jasmine) testrunner and PhantomJs. When executing any failing test the error message always ends with:
Exception doesn't have a stacktrace
在1.6Lavender版本的Phantom中添加了在发生错误时打印堆栈跟踪的功能。
In the 1.6 "Lavender" version of Phantom has added the feature to print the stacktrace when an error occurs.
要复制此项,只需创建一个mytest.js文件并将以下代码添加到其中:
To replicate this just create a mytest.js file and add the following code to it:
describe("A suite", function() {
it("contains spec with an expectation", function() {
expect(true).toBe(false);
});
});
推荐答案
当我获得Jetbrains Resharper团队的好评时记录了这个问题。他们修复了它,它在Resharper的7.1版本中,可以从他们的 EAP网站
Got a good response from the Jetbrains Resharper team when I logged the issue. They fixed it and it's in the 7.1 release of Resharper, which can be downloaded from their EAP site
这篇关于使用Resharper 7测试运行器进行Jasmine测试的堆栈跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!