QunitJS-Tests don#39;t start: PhantomJS timed out, possibly due to a missing QUnit start() call(QunitJS-Tests 不启动:PhantomJS 超时,可能是由于缺少 QUnit start() 调用)
问题描述
我已经按照此处描述的使用 QunitJS + PhantomJS + GruntJS 设置了我的测试环境:http://jordankasper.com/blog/2013/04/automated-javascript-tests-using-grunt-phantomjs-and-qunit/
I have set up my test environment as described here with QunitJS + PhantomJS + GruntJS: http://jordankasper.com/blog/2013/04/automated-javascript-tests-using-grunt-phantomjs-and-qunit/
如果我在本地执行测试(grunt 任务),一切正常.但是如果我尝试在我们的构建服务器上执行测试,它会抛出以下错误:
If I execute the tests (grunt task) locally everything works fine. But If I try to execute the tests on our buildserver it throws following error:
我多次检查了 URL 和路径,用于启动 qunit 测试的 html 文档也可以在我们构建服务器的配置路径上找到.任何想法为什么会发生此错误?
I checked the URL and path several times and the html-document for starting the qunit tests is also available on the configured path on our build server. Any ideas why this error can occur?
推荐答案
Grunt任务中qunit html文件的URL配置不正确!
The URL configuration for the qunit html file in the Grunt task was not correct!
这篇关于QunitJS-Tests 不启动:PhantomJS 超时,可能是由于缺少 QUnit start() 调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:QunitJS-Tests 不启动:PhantomJS 超时,可能是由于缺少 QUnit start() 调用


基础教程推荐
- 我可以在浏览器中与Babel一起使用ES模块,而不捆绑我的代码吗? 2022-01-01
- 如何使用TypeScrip将固定承诺数组中的项设置为可选 2022-01-01
- 用于 Twitter 小部件宽度的 HTML/CSS 2022-01-01
- html表格如何通过更改悬停边框来突出显示列? 2022-01-01
- Vue 3 – <过渡>渲染不能动画的非元素根节点 2022-01-01
- 如何使用JIT在顺风css中使用布局变体? 2022-01-01
- 直接将值设置为滑块 2022-01-01
- Chart.js 在线性图表上拖动点 2022-01-01
- Electron 将 Node.js 和 Chromium 上下文结合起来意味着 2022-01-01
- 自定义 XMLHttpRequest.prototype.open 2022-01-01