Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scala-calculator example does not resolve step definitions #321

Closed
dueckes opened this issue May 17, 2012 · 1 comment
Closed

scala-calculator example does not resolve step definitions #321

dueckes opened this issue May 17, 2012 · 1 comment

Comments

@dueckes
Copy link

dueckes commented May 17, 2012

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.

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants