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

WIP: Simplifying the step definitions #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

noggan
Copy link
Contributor

@noggan noggan commented May 17, 2017

Goal is to simplify and make it clearer what steps should be used.

@noggan
Copy link
Contributor Author

noggan commented May 17, 2017

The questions I'm thinking about currently is:

  • Typecasting parameters

Provide some way to specify the type of parameters given in TableNode. Some kind of suggestion is to automatically convert | [1,2,3] | to an array. Question is how we want to handle conversion to primitives (bool & int).

  • Specifying default parameters for requests

As it is now, a user would need to provide the entire request body on each request. Perhaps it could be solved by adding a step like Given default body: which can be placed in a background or if the user needs to solve this themselves by cleverly using Scenario Outlines in behat. I would prefer not to specify this using options since those files grow pretty large already.

@noggan
Copy link
Contributor Author

noggan commented May 17, 2017

On another note there's no way we can deprecate all the existing steps before we properly rewrite the entity fixture context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants