Unable to Run the cucumber feature file

when i am trying to run the feature file in cucumber i am getting the below error.

Exception in thread “main” Usage: java cucumber.api.cli.Main [options] [ [FILE|DIR][:LINE[:LINE]*] ]+


-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.

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)

Can any one help  me please to resolve the issue

sarathk38 Default Asked on June 12, 2016 in Software Testing.
Add Comment
1 Answer(s)

There are only two things that you can check
– Check feature files for any format error.
– Check the options that you have specified in CucumberOptions

Virender Singh Professor Answered on June 13, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.