Skip to content

Commit

Permalink
Possible fix for issue displaying durations in parameterized tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Jan 30, 2025
1 parent 35de199 commit 1ef0248
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ public void finishTestRun() {
}

public void testFinished() {
testFinished(false);
testFinished(this.isCurrentTestDataDriven());
}

private TestOutcome checkForEmptyScenarioIn(TestOutcome outcome) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,12 @@ public synchronized void executionFinished(TestIdentifier testIdentifier, TestEx
if (isMethodSource(testIdentifier)) {
MethodSource methodSource = ((MethodSource) testIdentifier.getSource().get());
String sourceMethod = methodSource.getClassName() + "." + methodSource.getMethodName();
testFinished(testIdentifier, methodSource, testExecutionResult);
// testFinished(testIdentifier, methodSource, testExecutionResult);
DataTable dataTable = dataTables.get(sourceMethod);
if (dataTable != null) {
eventBusFor(testIdentifier).exampleFinished();
}
testFinished(testIdentifier, methodSource, testExecutionResult);
}
}
recordSummaryData(testIdentifier, testExecutionResult);
Expand Down

0 comments on commit 1ef0248

Please sign in to comment.