From 44ff213119a682b8c96f843facc3783e30e34d21 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 11 Jun 2021 09:41:22 +0300 Subject: [PATCH] Prevent unlikely NoSuchElementException in continuous testing Fixes: #17824 --- .../io/quarkus/deployment/dev/testing/JunitTestRunner.java | 3 +++ 1 file changed, 3 insertions(+) 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 20927d810aed10..2a1b39be1e2446 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 @@ -276,6 +276,9 @@ public void executionFinished(TestIdentifier testIdentifier, TestExecutionResult if (aborted) { return; } + if (touchedClasses.isEmpty()) { + return; + } Class testClass = null; String displayName = testIdentifier.getDisplayName(); TestSource testSource = testIdentifier.getSource().orElse(null);