Skip to content

Commit

Permalink
Fix test class name display
Browse files Browse the repository at this point in the history
Fixes #33744
  • Loading branch information
stuartwdouglas committed Jun 1, 2023
1 parent 8d4b3d1 commit 2828c0a
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 2828c0a

Please sign in to comment.