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



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)