From edf064ecdde986437d65a9381e30b40d9f6cb178 Mon Sep 17 00:00:00 2001 From: Thomas Durieux <5577568+tdurieux@users.noreply.github.com> Date: Sat, 30 Sep 2023 00:07:26 +0200 Subject: [PATCH] Fix exclude configuration in TestFrameworkStrategy.java --- .../core/coverage/framework/TestFrameworkStrategy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/fr/spoonlabs/flacoco/core/coverage/framework/TestFrameworkStrategy.java b/src/main/java/fr/spoonlabs/flacoco/core/coverage/framework/TestFrameworkStrategy.java index 2219478..5250ae0 100644 --- a/src/main/java/fr/spoonlabs/flacoco/core/coverage/framework/TestFrameworkStrategy.java +++ b/src/main/java/fr/spoonlabs/flacoco/core/coverage/framework/TestFrameworkStrategy.java @@ -42,14 +42,14 @@ protected void setupTestRunnerEntryPoint() { } else { EntryPoint.jacocoAgentIncludes = this.computeJacocoIncludes(); } - if (!config.getJacocoIncludes().isEmpty()) { + if (!config.getJacocoExcludes().isEmpty()) { EntryPoint.jacocoAgentExcludes = config.getJacocoExcludes().stream().reduce((x, y) -> x + ":" + y).orElse(""); } } /** - * Auxiliary method to compute the classpath according to the test framework and the custom confirguration + * Auxiliary method to compute the classpath according to the test framework and the custom configuration * * @return Classpath for test-runner execution */