Execute a cucumber test scenario with and undefined step
Generate the report
Open the report generated on the previous step
Expected behavior
Test scenario should be marked as Failed and should be displayed on that report section
Actual behavior
Test scenario is marked as Skipped and is displaued on that report section
Attachments
Maven logs:
[ERROR] Feature1.Feature1 - Test Scenario Name -- Time elapsed: 43.79 s <<< ERROR!
io.cucumber.junit.platform.engine.UndefinedStepException:
The step 'Search for client "Test client"' is undefined.
You can implement this step using the snippet(s) below:
@Then("Search for client {string}")
public void search_for_client(String string) {
// Write code here that turns the phrase above into concrete actions
throw new io.cucumber.java.PendingException();
}
Additional context
I remember this feature was working as expected on previous versions.
Describe the bug Test scenario is marked as Skipped instead of Failed when flag to failScenariosOnPendingOrUndefinedSteps is enabled
To Reproduce Steps to reproduce the behavior:
Expected behavior Test scenario should be marked as Failed and should be displayed on that report section
Actual behavior Test scenario is marked as Skipped and is displaued on that report section
Attachments
Maven logs:
Additional context I remember this feature was working as expected on previous versions.