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

Implement running feature, scenario, step from string instead of file #4

Open
williaml33moore opened this issue Mar 10, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@williaml33moore
Copy link
Owner

williaml33moore commented Mar 10, 2024

The new parser structure enables this feature.
If I can parse strings instead of files, I can run powerful unit tests on the parser.

@williaml33moore williaml33moore self-assigned this Mar 10, 2024
@williaml33moore williaml33moore added the enhancement New feature or request label Mar 10, 2024
@williaml33moore
Copy link
Owner Author

This is done for features and steps, but not scenarios.

The jury is still out on whether it's needed for scenarios.

https://github.com/williaml33moore/bathtub/blob/d352757848d7756188d3cd4efb01f2873610c168/src/bathtub_pkg/gherkin_parser/gherkin_parser.svh

  • gherkin_parser::parse_feature_lines()
  • gherkin_parser::parse_feature_string()
  • gherkin_parser::parse_step_string()
  • gherkin_parser::parse_step_lines()

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