Skip to content

Commit

Permalink
Fix test class name display
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas authored and sberyozkin committed Jun 21, 2023
1 parent 1fd04d6 commit 35af2b6
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 35af2b6

Please sign in to comment.