QunitJS-测试不启动:PhantomJS超时,可能是由于缺少QUnit调用start() [英] QunitJS-Tests don't start: PhantomJS timed out, possibly due to a missing QUnit start() call

查看:436
本文介绍了QunitJS-测试不启动:PhantomJS超时,可能是由于缺少QUnit调用start()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了与QunitJS + PhantomJS + GruntJS这里介绍我的测试环境:<一href=\"http://jordankasper.com/blog/2013/04/automated-javascript-tests-using-grunt-phantomjs-and-qunit/\" rel=\"nofollow\">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/

如果我执行测试(咕噜任务)本地一切工作正常。但是,如果我试图执行我们的buildserver测试它抛出以下错误:

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:

我检查的网址和路径几次和HTML文档用于启动qunit测试也可我们构建服务器上配置的路径上。为什么会出现这个错误任何想法?

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?

推荐答案

在咕噜任务qunit HTML文件的URL配置是不正确的!

The URL configuration for the qunit html file in the Grunt task was not correct!

这篇关于QunitJS-测试不启动:PhantomJS超时,可能是由于缺少QUnit调用start()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆