Skip to content

Loading…

scala-calculator example does not resolve step definitions #321

Closed
dueckes opened this Issue · 0 comments

2 participants

@dueckes

Versions: 1.0.8 & 1.0.9-SNAPSHOT

Description: After cucumber installation via mvn clean install

$ cd examples/scala-calculator
$ mvn clean integration-test

The output includes:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running cucumber.examples.scalacalculator.RunCukesTest


You can implement missing steps with the snippets below:

When("""^I add (\d+) and (\d+)$"""){ (arg0:Int, arg1:Int) =>
  //// Express the Regexp above with the code you wish you had
  throw new PendingException()
}
Then("""^the result is (\d+)$"""){ (arg0:Int) =>
  //// Express the Regexp above with the code you wish you had
  throw new PendingException()
}
Tests run: 3, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 0.504 sec

Results :

Tests run: 3, Failures: 0, Errors: 0, Skipped: 3

It appears as though scala step definitions are not recognised.

There is also a subtle difference between the step definition implementation advice and that of the current implementation - the advise step definition arguments are Int whereas the implementation utilises Double.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.