Re: [Cucumber] Unknown option: --plugin excepiton

486 views
Skip to first unread message

Paolo Ambrosio

unread,
Mar 24, 2016, 11:37:01 AM3/24/16
to cu...@googlegroups.com
On Thu, Mar 24, 2016 at 2:30 PM, Mustafa Topçu
<mustafatop...@gmail.com> wrote:
> I was try to install cucumber /selenium bu t i got weird excepiton. Help me
> please.
>
>
> My CucumberRunner:
>
> package cucumber;
>
> import org.junit.runner.RunWith;
> import cucumber.api.CucumberOptions;
> import cucumber.api.junit.Cucumber;
>
> @RunWith(Cucumber.class)
>
> @CucumberOptions(
> features={"src/cucumber/"},
> format={"pretty","json:target/"}
> )
>
>
> public class CucumberRunner {
>
> }
>
> myfeature.feature:
>
> Feature: I want to use this template for my feature file
>
> Scenario: Title of your scenario
> Given I want to write a step with precondition
> And some other precondition
> When I complete action
> Then I validate the outcomes
>
> Exception:
>
> 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

Don't really know what you are trying to do since the exception is
from the CLI runner and you pasted JUnit code. I would start by
verifying that all jars belong to the same version of Cucumber.

> 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)
>
> --
> Posting rules: http://cukes.info/posting-rules.html
> ---
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cukes+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages