- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我尝试使用 PhantomJS 运行 JSCover 时,我看到以下错误:
遵循的步骤:
1) 运行 JSOver 服务器:
java -jar ~/JSCover/target/dist/JSCover-all.jar -ws --report-dir=report
2) 使用 JSOver 运行 PhantomJS 运行程序: *phantomjs --debug=true ~/JSCover/src/test/javascript/lib/PhantomJS/run-jscover-jasmine.js
localhost8080/<app>/module/framework/test/SpecRunner.html
TypeError: 'null' is not an object
(评估''document.body.querySelector('.description').innerText')`
phantomjs://webpage.evaluate():3
phantomjs://webpage.evaluate():22
phantomjs://webpage.evaluate():22
2013-09-19T16:36:07 [DEBUG] WebPage - evaluateJavaScript result QVariant(, )
2013-09-19T16:36:07 [DEBUG] 网页 - 评估JavaScript“(function() { return (function () { jscoverage_report('幻影'); })(); })()"2013-09-19T16:36:07 [DEBUG] 网页 - 评估 JavaScript 结果 QVariant(, )2013-09-19T16:36:07 [DEBUG] 网络 - 资源请求错误:5(“操作已取消”)URL:localhost8080/<app_home>/lib/backbone/1.0.0/backbone.js?cb=0.5381254460662603
最佳答案
这是我昨天遇到的问题。事实证明,示例脚本不适用于较新的版本,因此我构建了一个适用于 Jasmine 2.X 的新 Phantom 脚本,修复了该问题。您可以在我的存储库中找到工作脚本:
关于jasmine - JSOver 与 PhantomJS - 类型错误 : 'null' is not an object,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18907081/
我正在使用 mocha 测试我的 Nodejs 代码。我想要一份覆盖率报告。我找到了JSCover我正在努力奔跑。但我越来越 ReferenceError: _$jscoverage is not d
当我尝试使用 PhantomJS 运行 JSCover 时,我看到以下错误: 遵循的步骤: 1) 运行 JSOver 服务器: java -jar ~/JSCover/target/dist/JSCo
我是一名优秀的程序员,十分优秀!