<testsuite name="1_fail.Fail feature with a single scenario" tests="2" errors="2"
failures="0" skipped="0" time="0.0" timestamp="2024-06-28T13:14:40.358338"
hostname="localhost">
<testcase classname="1_fail.Fail feature with a single scenario"
name="First scenario won't be executed due to failed before feature" status="failed" time="0">
<error type="Exception" message="Preconditions failed">
<![CDATA[
Failing step: Given this step won't be executed ... failed in 0.000s
Location: features/integration/fail.feature:11
FAILED SUB-STEP: Given a failed step
Substep info: Assertion Failed: FAILED SUB-STEP: Given a failed sub-step exception
Substep info: Traceback (most recent call last):
raise Exception("Sorry, no lucky day!")
]]>
</error>
<system-out>
<![CDATA[
@scenario.begin
@regression @sanity
Scenario: First scenario won't be executed due to failed before feature
Given this step won't be executed ... failed in 0.000s
Given I hope this generates test report ... failed in 0.000s
@scenario.end
--------------------------------------------------------------------------------
]]>
</system-out>
</testcase>
</testsuite>
Description
fix: dynamic environment error output for a feature with:
Current output
Current output scenarios without failure because
background
is not updated with fail status and this lead to false positives for scenarios:Corrected output
Scenarios with background fail because actions before the feature fails, console log:
To generate correct report xml output: