2016-07-20 43 views
2
Usage: java cucumber.api.cli.Main [options] [ [FILE|DIR][:LINE[:LINE]*] ]+ 

Options: 

-g, --glue PATH     Where glue code (step definitions and hooks) is loaded from. 
-f, --format FORMAT[:PATH_OR_URL] How to format results. Goes to STDOUT unless PATH_OR_URL is specified. 
            Built-in FORMAT types: junit, html, pretty, progress, json. 
            FORMAT can also be a fully qualified class name. 
-t, --tags TAG_EXPRESSION   Only run scenarios tagged with tags matching TAG_EXPRESSION. 
-n, --name REGEXP     Only run scenarios whose names match REGEXP. 
-d, --[no-]-dry-run    Skip execution of glue code. 
-m, --[no-]-monochrome    Don't colour terminal output. 
-s, --[no-]-strict     Treat undefined and pending steps as errors. 
    --snippets      Snippet name: underscore, camelcase 
    --dotcucumber PATH_OR_URL  Where to write out runtime information. PATH_OR_URL can be a file system 
            path or a URL. 
-v, --version      Print version. 
-h, --help       You're looking at it. 
Exception in thread "main" cucumber.runtime.CucumberException: Unknown option: --plugin 
at cucumber.runtime.RuntimeOptions.parse(RuntimeOptions.java:119) 

at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:50) 
at cucumber.runtime.RuntimeOptions.<init>(RuntimeOptions.java:44) 
at cucumber.api.cli.Main.run(Main.java:20) 
at cucumber.api.cli.Main.main(Main.java:16) 

我在運行我的功能文件時出現此錯誤。下面 癒合禱言的依賴,並給出我使用的3.2.4版本春黃瓜veriosn 1.1.5在運行Cucumber功能文件時出現錯誤未知選項:--plugin

+0

你也可以添加你的代碼或解釋一下更多你在做什麼,你什麼時候得到這個錯誤! –

+0

這只是簡單的測試功能文件,它顯示錯誤,但是當我移動到IntelliJi時,它工作正常。我會因爲Eclipse IDE而煩惱嗎? –

+0

嘗試將黃瓜版本更新爲最新.. –

回答

0

看起來像你使用的是很舊的版本黃瓜JVM的是尋找

--format 

代替

--plugin 

最新的cucumber-jvm用法文本可以在here找到。

從描述的herehere獲取Maven倉庫中的最新cucumber-jvm。

相關問題