2016-08-29 43 views
0

我在PhpStorm 8.0.1运行我的量角器测试。尽管在应用程序参数部分中正确提供了参数,但问题仍然存在,该脚本无法运行,即使此时它也会在控制台中输出成功运行。这是输出。没有规格发现问题量角器成功运行

[12:45:30] I/hosted - Using the selenium server at http://localhost:4444/wd/hub 
[12:45:30] I/launcher - Running 1 instances of WebDriver 
Started 
1..0 # All tests disabled 
# 0 specs, 0 failures, 0 skipped, 0 disabled in 0.014s. 
# NOTE: disabled specs are usually a result of xdescribe. 
SUCCESS: 0 specs, 0 failures, 0 skipped, 0 disabled in 0.015s. 


No specs found 
Finished in 0.016 seconds 
[12:45:34] I/launcher - 0 instance(s) of WebDriver still running 
[12:45:34] I/launcher - chrome #01 passed 

Process finished with exit code 0 

我的应用程序参数是这样配置的。

http://screencast.com/t/HOqAW6ya4oe

在此可以相应配置是否正确我的文件夹结构。

http://screencast.com/t/xK98JrDlc2a

这是较早的工作很好,现在突然我得到这个输出。任何关于如何解决这个问题的建议都会有很大的帮助。

+0

通过看你的错误堆栈跟踪。你所有的测试已经被禁用了'xdescribe'。只需将其改为“describe”即可使用! –

+0

我看不到使用xdescribe禁用了我的规格。看起来很奇特。这是规格快照。 http://screencast.com/t/ggV3hJBm –

+2

你可以粘贴你的'config.js'吗? –

回答

0

specs: [ '../specs/WP-lam_spec.js' ],我认为这是一个职高将其更改为:

specs: ['spec/**/*[sS]pec.js'],

所以它会启动所有的功能你在规范文件夹了,还我认为这可能是与缺乏'问题从截图参数所以才更改为:

protractor --specs='path\to\file.spec.js'