2016-08-29 42 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'