This is a mostly-empty project placed here to be a sandbox for any one-off exercises or tests you might like to write. It's preconfigured with Cucumber, JUnit, and Hamcrest.
See ../example for an example project that's pre-configured to run normal
JUnit tests.
The project is preconfigured to execute Cucumber tests with JUnit. You can run the tests from the command line with:
$ mvn test
Or from Eclipse with Run As -> Maven test:
Feature files are stored in src/test/resources/example,
and you can add additional tests by adding additional Scenario: constructs to
the existing feature file or by adding additional feature files.
When you run mvn test, Cucumber will output method stubs of step definitions
to implement the tests like this:
@When("^I parse the file$")
public void i_parse_the_file() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
Step definitions can be defined with the @Given, @When, and @Then method
annotations in any class you like, though the src/test/java/example/Stepdefs.java
class has already been defined for you to start from.
