Files
temp/features/testing/tdd_expected_fail_demo.feature
freemo 8ea00f5185 fix: restore CI quality tests to passing state (#4175)
Co-authored-by: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Co-committed-by: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
2026-04-08 11:02:14 +00:00

21 lines
1.0 KiB
Gherkin

@mock_only
Feature: TDD expected-fail result inversion demo
Demonstrates the @tdd_expected_fail tag inverting a deliberately failing
scenario so it is reported as passed. This exercises the Scenario.run()
wrapper logic installed by _install_tdd_expected_fail_patch() in
features/environment.py.
See CONTRIBUTING.md > TDD Issue Test Tags for the three-tag specification.
Note: The "unexpected pass" path (where a @tdd_expected_fail scenario
passes and is forced to fail) cannot be tested as an integration scenario
because the forced failure would break the test suite. That path is
tested via mock-based unit tests in tdd_tag_validation.feature and via
real Scenario objects in tdd_expected_fail_infrastructure.feature.
# @tdd_issue @tdd_issue_999 @tdd_expected_fail @skip
@skip
Scenario: Demo bug 999 expected failure is inverted to pass
Given tdd demo a step that always succeeds
When tdd demo a deliberately failing assertion is executed
Then tdd demo this step is never reached