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() 调用


- 使用RSelum从网站(报纸档案)中抓取多个网页 2022-09-06
- Fetch API 如何获取响应体? 2022-01-01
- Flexslider 箭头未正确显示 2022-01-01
- 400或500级别的HTTP响应 2022-01-01
- addEventListener 在 IE 11 中不起作用 2022-01-01
- 失败的 Canvas 360 jquery 插件 2022-01-01
- CSS媒体查询(最大高度)不起作用,但为什么? 2022-01-01
- Quasar 2+Apollo:错误:找不到ID为默认的Apollo客户端。如果您在组件设置之外,请使用ProvideApolloClient() 2022-01-01
- Css:将嵌套元素定位在父元素边界之外一点 2022-09-07
- 如何使用 JSON 格式的 jQuery AJAX 从 .cfm 页面输出查 2022-01-01