Skip to content

Commit

Permalink
Removed unnecessary elements from the reported stack traces
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Feb 5, 2024
1 parent c87d62c commit b33b558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ private void markCurrentStepAs(final TestResult result) {

public void stepFailed(StepFailure failure) {

if (!aStepHasFailed()) {
if (!aStepHasFailed() || StepEventBus.getEventBus().softAssertsActive()) {
// This is the actual failure, so record all the details
takeEndOfStepScreenshotFor(FAILURE);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public class StackTraceSanitizer {
"org.jbehave",
"cucumber.runtime",
"cucumber.api",
"io.cucumber",
"net.serenitybdd.core",
"net.serenitybdd.junit",
"net.serenitybdd.plugins",
Expand Down

0 comments on commit b33b558

Please sign in to comment.