使用Jasmine BDD获取已执行代码的堆栈跟踪(Getting a stack trace of your executed code with Jasmine BDD)
我一直在使用Jasmine来测试我的Rails应用程序的javascript代码。 但是,当我运行rake jasmine并查看网页时。 失败期望的堆栈跟踪只显示jasmine.js文件,而不是我的代码。 有没有办法让它显示我的代码在Rspec中失败的地方?
I've been using Jasmine to test my Rails application's javascript code. However, when i run rake jasmine and view the webpage. The stack traces for failed expectations just show the jasmine.js file, not my code. Is there a way to get it to show where my code is failing like in Rspec?
最满意答案
如果其他人遇到这个问题,我发现使用jasmine-headless-webkit gem有很多帮助。
Incase anyone else runs into this issue, i found using the jasmine-headless-webkit gem helps a lot.
更多推荐
发布评论