You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pytest-param-scope emulates functionality that approximates what a fixture scope at the parametrized test level might achieve. In fact, native support for such a scope may come to pytest, and this issue tracks the related efforts. The following two issues directly track the interest for this feature:
However, implementation requires pytest's test collection node structure to understand functions at definition time, prior to parametrization. Also, pytest-dev/pytest#1552 (comment) and pytest-dev/pytest#1552 (comment) detail the implementation problem of how such a scope is not so simply defined, due to the fact that parametrize can be used on functions as well as fixtures, operating at various scopes. See further discussion in #1. And in pytest's backwards compatibility policy, it is explicitly stated that this feature effort constitutes a true breakage. We can see some of the broader upstream efforts related to the above feature requests:
Contributors are welcome to contribute here at pytest-param-scope to improve the emulation of param scope functionality until the massive overhaul in pytest properly supports the scope. I would also like to point potentially interested contributors towards helping the upstream effort for supporting param scope in pytest. However, most of the direct blockers touch a lot of the core parts of pytest, so the work is being carried out primarily by core pytest contributors. At the time of writing, then, the best way to help out pytest upstream is to follow their contribution guide, and work on issues designated as good first issues or those marked as help wanted.
Meta-meta-question: This developer-focused meta-issue has a lot of detail. Some of these details may be relevant to the user-focused readme documentation. If so, which details might be worth including there?
The text was updated successfully, but these errors were encountered:
pytest-param-scope
emulates functionality that approximates what a fixture scope at the parametrized test level might achieve. In fact, native support for such a scope may come to pytest, and this issue tracks the related efforts. The following two issues directly track the interest for this feature:However, implementation requires pytest's test collection node structure to understand functions at definition time, prior to parametrization. Also, pytest-dev/pytest#1552 (comment) and pytest-dev/pytest#1552 (comment) detail the implementation problem of how such a scope is not so simply defined, due to the fact that
parametrize
can be used on functions as well as fixtures, operating at various scopes. See further discussion in #1. And in pytest's backwards compatibility policy, it is explicitly stated that this feature effort constitutes a true breakage. We can see some of the broader upstream efforts related to the above feature requests:FunctionDefinition
node, currently inactiveFunctionDefinition
Contributors are welcome to contribute here at
pytest-param-scope
to improve the emulation of param scope functionality until the massive overhaul in pytest properly supports the scope. I would also like to point potentially interested contributors towards helping the upstream effort for supporting param scope in pytest. However, most of the direct blockers touch a lot of the core parts of pytest, so the work is being carried out primarily by core pytest contributors. At the time of writing, then, the best way to help out pytest upstream is to follow their contribution guide, and work on issues designated as good first issues or those marked as help wanted.Meta-meta-question: This developer-focused meta-issue has a lot of detail. Some of these details may be relevant to the user-focused readme documentation. If so, which details might be worth including there?
The text was updated successfully, but these errors were encountered: