2016-07-20 8 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) 

フィーチャファイルの実行中にこのエラーが発生します。 POM依存性は以下の通りであると私は1.1.5キュウリフィーチャファイルの実行中にエラーが発生する不明なオプション:--plugin

+0

また、あなたのコードを追加したり、何をやっているのですか?このエラーがいつ発生していますか? –

+0

それはエラーを表示していた単純なテスト機能ファイルですが、IntelliJiに移動したときに正常に動作しています。私はそれがEclipse IDEのbeacuseのですか? –

+0

キュウリのバージョンを最新のバージョンに更新してください。 –

答えて

0

veriosnキュウリと3.2.4春バージョンを使用していますが、代わりに

--format 

を探しているキュウリ、JVMの非常に古いバージョンを使用しているように見えます

--plugin 

の最新キュウリのJVMの使用テキストはhereを見つけることができます。

hereまたはhereのように、Mavenリポジトリから最新のcucumber-jvmを入手してください。

関連する問題