@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