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

Tool to declare a fixture as "cross-steps" explicitly #24

Closed
smarie opened this issue Dec 18, 2018 · 0 comments
Closed

Tool to declare a fixture as "cross-steps" explicitly #24

smarie opened this issue Dec 18, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@smarie
Copy link
Owner

smarie commented Dec 18, 2018

As of today

  • In generator mode all fixtures are "cross-steps", however the fixture function is still called several times, once for each step. This is useless, because the corresponding values are just lost.
  • In parametrizer mode all fixtures are "one per step", and there is no way to declare a fixture as cross-steps.
  • When pytest-harvest is used, the pivot should take into account if a fixture is in one mode or the other. As of today it does not have a clue.
@smarie smarie changed the title Tool to declaring Tool to declare a fixture as "cross-steps" explicitly Dec 18, 2018
@smarie smarie added the enhancement New feature or request label Dec 18, 2018
@smarie smarie closed this as completed in 58112cc Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant