-
Notifications
You must be signed in to change notification settings - Fork 221
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
Ability to reusable steps, specifically inside a plugin #754
Comments
what about defining your steps in For example, you can do |
@youtux from what i can see
This does not work, when A. copying the code into conftest (yuk) |
Have you tried setting |
that's weird, I know of a fairly big codebase that uses the solution described in #754 (comment). I'll close this unless you can come back with a Minimal, Reproducible Example that shows the issue. |
Is your feature request related to a problem? Please describe.
Kind of. There is no obvious way to reuse steps from an import. Specifically, I need a straightforward approach to specify at which level these reused steps should be applied. Without this, the process of integrating shared steps across different tests becomes unclear and cumbersome.
Describe the solution you'd like
My current solution, is very nasty, needs a sanity check. Ideally, I'd like a clean, well-structured method that allows me to define and reuse these steps at various levels within my tests, ensuring a more maintainable and understandable codebase.
Describe alternatives you've considered
I’ve experimented with multiple approaches in the codebase, but each attempt has only deepened my confusion. Nothing so far has provided a clear, reliable pattern for managing and reusing these steps effectively.
Additional context
NA
The overarching goal of my project is to establish predefined, shareable test steps that handle mundane operations—such as setting up data, calling a URL, and then verifying data—in a highly explicit and readable manner. This would simplify common testing patterns and promote consistency across projects. For example:
Rinse and repeat.
The text was updated successfully, but these errors were encountered: