Below are the jars :
1. cucumber-core-1.1.5
2. cucumber-html-0.2.3
3. cucumber-java-1.1.5
4. cucumber-junit-1.1.5
5. cucumber-jvm-deps-1.0.3
6. hamcrest-all-1.3
7. junit-4.11
8. selenium-server-standalone-2.42.0
9. gherkin-2.12.1
I have even used the latest jars, but error is same.
Error :
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)
Feature File :
Feature: Title of your feature
Scenario: Title of your scenario
Given I naviagted to the zoo website
When I click on adoption link
Then I check to see that no animals are available
I am running it as a "Cucumber Feature".