Skip to content

Commit

Permalink
Merge pull request #33757 from stuartwdouglas/33744
Browse files Browse the repository at this point in the history
Fix test class name display
  • Loading branch information
stuartwdouglas authored Jun 2, 2023
2 parents cf7ab81 + 2828c0a commit 6c7ce38
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ public void executionStarted(TestIdentifier testIdentifier) {
startTimes.put(testIdentifier, System.currentTimeMillis());
String testClassName = "";
Class<?> testClass = getTestClassFromSource(testIdentifier.getSource());
if (testClass != null) {
testClassName = testClass.getName();
}
for (TestRunListener listener : listeners) {
listener.testStarted(testIdentifier, testClassName);
}
Expand Down

0 comments on commit 6c7ce38

Please sign in to comment.