in surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/pc/ParallelComputer.java [200:221]
private static void printShutdownHook(
Collection<String> executedTests,
Collection<String> incompleteTests,
Future<ShutdownResult> testsBeforeShutdown)
throws ExecutionException, InterruptedException {
if (testsBeforeShutdown != null) {
final ShutdownResult shutdownResult = testsBeforeShutdown.get();
if (shutdownResult != null) {
for (final Description test : shutdownResult.getTriggeredTests()) {
if (test != null && test.getDisplayName() != null) {
executedTests.add(test.getDisplayName());
}
}
for (final Description test : shutdownResult.getIncompleteTests()) {
if (test != null && test.getDisplayName() != null) {
incompleteTests.add(test.getDisplayName());
}
}
}
}
}