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

Add all_steps and unique_steps property/function to relevant objects #5

Open
aekoch opened this issue Aug 30, 2022 · 0 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@aekoch
Copy link
Collaborator

aekoch commented Aug 30, 2022

Currently, these functions that only exist at the GherkinProject level, where they are manually computed. It should be possible to do these functions at the Feauture and Scenario level.

Note: there is no one uniqueness algorithm, sometimes you want to find all steps with different raw texts, sometimes you want real texts, sometimes you want to ignore the keyword altogether, and sometimes you want to use the step with scenario outline parameters replaced. The unique_steps function should support using different step comparison strategies.

AC: The following functions/properties should exist and work:

  • scenario.all_steps
  • scenario.unique_steps(strategy)
  • feature.all_steps
  • feature.unique_steps(strategy)
  • project.all_steps
  • project.unique_steps(strategy)

These functions should also be added to any additional objects between Scenario and GherkinProject

@aekoch aekoch added enhancement New feature or request good first issue Good for newcomers labels Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant