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

Jython - Step Defs require "self" passed, autogenerate does not include #324

Closed
sabrams opened this issue May 17, 2012 · 3 comments
Closed

Comments

@sabrams
Copy link
Contributor

sabrams commented May 17, 2012

When running from Maven, without a step definition, I correctly get the message that steps have not been created, and the examples are shown. When I plug these in as suggested and run them again, the tests pass (they do not throw the PendingException in the step def template).

Running with JUnit support (through IntelliJ), I get an "cucumber.runtime.CucumberException: Arity mismatch", because the first argument is assumed to be "self".

When I add self as the first arguement of the step definition, both methods of running the feature files correctly throw the PendingException.

Perhaps I can take a look at this - do we want Jython step defs to always have the "self" arguement, and update the generator? Or should we not require "self"?

@aslakhellesoy
Copy link
Contributor

I think we always want the self argument - a new object is created for each scenario, and that's passed in as self

@sabrams
Copy link
Contributor Author

sabrams commented May 18, 2012

Sounds good, thank you

@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