问题描述
我已经按照此处描述的使用 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() 调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!