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 */