Skip to content

Commit a854ad8

Browse files
report: junit5 matcher failed step is now properly registered (#1373)
1 parent dca6ea3 commit a854ad8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Fix: JUnit5 correctly registers failed matcher step

webtau-java-runner/src/main/java/org/testingisdocumenting/webtau/javarunner/report/JavaBasedTest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,19 @@ public WebTauTest getTest() {
3838

3939
@Override
4040
public void onStepStart(WebTauStep step) {
41-
if (step.getNumberOfParents() == 0) {
42-
test.addStep(step);
43-
}
4441
}
4542

4643
@Override
4744
public void onStepSuccess(WebTauStep step) {
45+
if (step.getNumberOfParents() == 0) {
46+
test.addStep(step);
47+
}
4848
}
4949

5050
@Override
5151
public void onStepFailure(WebTauStep step) {
52+
if (step.getNumberOfParents() == 0) {
53+
test.addStep(step);
54+
}
5255
}
5356
}

0 commit comments

Comments
 (0)