Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

WIP: Simplifying the step definitions#15

Open
noggan wants to merge 3 commits intomasterfrom
refactor/api-client
Open

WIP: Simplifying the step definitions#15
noggan wants to merge 3 commits intomasterfrom
refactor/api-client

Conversation

@noggan
Copy link
Copy Markdown
Contributor

@noggan noggan commented May 17, 2017

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

@noggan
Copy link
Copy Markdown
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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants