diff --git a/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/JunitTestRunner.java b/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/JunitTestRunner.java index 51fddadc5f53a..88453151ec334 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/JunitTestRunner.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/dev/testing/JunitTestRunner.java @@ -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); }