Skip to content

Release v0.2.0 — beehave-native rebuild#24

Merged
nullhack merged 6 commits into
mainfrom
release/v0.2.0
May 13, 2026
Merged

Release v0.2.0 — beehave-native rebuild#24
nullhack merged 6 commits into
mainfrom
release/v0.2.0

Conversation

@nullhack
Copy link
Copy Markdown
Owner

Summary

Complete rebuild of pytest-beehave on top of beehave>=0.4.0, replacing the previous custom Gherkin parser and stub generator with the beehave library's native APIs.

Core features

  • Stub generationparse_feature() + generate_stubs() create Hypothesis-compatible test stubs from .feature files
  • Skip markers@pytest.mark.skip(reason="not implemented") auto-applied to generated stubs; idempotent, placed before all decorators
  • Consistency checkingcheck_all() detects 6 violation types; ERROR violations produce real test failures via BeehaveViolationItem
  • BDD steps display — terminal (-v) and HTML report (pytest-html Scenario column)

Changes

  • New plugin modules: plugin.py, steps_display.py, html_column.py, __init__.py
  • Updated spec: docs/spec/pytest-beehave-spec.md
  • Bug documentation: docs/spec/beehave-bugs.md (4 beehave v0.4.0 bugs verified fixed)
  • Updated README to reflect actual functionality
  • Version bumped to 0.2.0

Testing

37 e2e tests pass covering stub generation (A1-A12), steps display (B9-B11), HTML column (C12-C13), consistency checking (D14-D20), and adversarial edge cases (19-30).

All lint (ruff), format, and type checks (pyright) pass clean.

nullhack added 6 commits May 13, 2026 10:46
… markers, and BDD steps display

Rebuilt plugin on beehave>=0.4.0 with four core features:
- Stub generation from Gherkin .feature files via beehave.gherkin.parse_feature + beehave.generate.generate_stubs
- @pytest.mark.skip(reason='not implemented') auto-applied to generated stubs (removed on implementation)
- Consistency checking via beehave.check.check_all with real test failures for ERROR violations (BeehaveViolationItem)
- BDD steps display in terminal (-v) and HTML reports (pytest-html Scenario column)

37 e2e tests pass. All lint, format, and type checks clean.
@nullhack nullhack merged commit 7d9b7ab into main May 13, 2026
7 checks passed
@nullhack nullhack deleted the release/v0.2.0 branch May 13, 2026 18:07
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.

1 participant