Skip to content

Add --summary option to tools/gherkinize.py#191

Merged
slott56 merged 1 commit into
mainfrom
issue_190
Jul 17, 2026
Merged

Add --summary option to tools/gherkinize.py#191
slott56 merged 1 commit into
mainfrom
issue_190

Conversation

@slott56

@slott56 slott56 commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

This will produce a CSV-format summary of sections, scenarios, and tags. This provides an overview of tags applied, showing the tests which are currently bypassed because they're unlikely to pass. The relevant changes are lines 1072 to the end of gherkinize.py.

This doesn't exactly fit the original issue: it doesn't use ❌ and ✅. Those would be limited to the @wip tag only, and really, other bulk tagging might be applied to the @conformance subset of test cases.

This change also includes extensive testing to get gherkinize.py test coverage to 100%. This means a huge change to tests/test_gherkinize.py and pervasive small changes to gherkinize.py of two kinds:

  • Fix numerous __eq__() methods to be more consistent in their type checking and use of return NotImplemented.

  • Fix the Exception instances to be TypeError which is a bit more specific to the problems encountered. A few might be ValueError, but the nuanced distinctions rarely matter; they're very unlikely to arise from parsing source protobuf documents.

Also, there are tiny cleanups applied in other places: pyproject.toml, refresh_spec.py, test_evaluation.py, and README.rst.

This is required to close issue #182 and issue #172. Doing this lets us create and prioritize subtasks for issue #64, which is the distant goal.

This will produce a CSV-format summary of sections, scenarios, and tags. This provides an overview of tags applied, showing the tests which are (currently).

This includes extensive testing to get Gherkinize test coverage to 100%

This doesn't use red "X" and green Check because those would be limited to the `@wip` tag only.
@slott56 slott56 mentioned this pull request Jul 6, 2026
4 tasks

@kapilt kapilt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, walked through the diff, but not super familiar with gherkin, so rubber stamp, but everything looks fine to me.

@slott56
slott56 merged commit 22158f8 into main Jul 17, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants