From f88c00422f80474a67256fdd2be35e7c0e2a18f5 Mon Sep 17 00:00:00 2001 From: Sigee Date: Fri, 21 Jul 2023 20:07:15 +0200 Subject: [PATCH] Passing classpath in file by default --- README.md | 2 +- .../groovy/info/solidsoft/gradle/pitest/PitestPlugin.groovy | 2 +- .../info/solidsoft/gradle/pitest/BasicProjectBuilderSpec.groovy | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c691c8e6..c7ed87c5 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ to add integration tests located in a different source set) another Java processes for mutation testing execution and usually `jvmArgs` should be used to for example increase maximum memory size (see [#7](https://github.com/szpak/gradle-pitest-plugin/issues/7)); - `additionalMutableCodePaths` - additional classes to mutate (useful for integration tests with production code in a different module - see [#25](https://github.com/szpak/gradle-pitest-plugin/issues/25)) - - `useClasspathFile` - enables passing additional classpath as a file content (useful for Windows users with lots of classpath elements, disabled by default) + - `useClasspathFile` - enables passing additional classpath as a file content (useful for Windows users with lots of classpath elements, enabled by default) - `fileExtensionsToFilter` - provides ability to filter additional file extensions from PIT classpath (see [#53](https://github.com/szpak/gradle-pitest-plugin/issues/53)) For example: diff --git a/src/main/groovy/info/solidsoft/gradle/pitest/PitestPlugin.groovy b/src/main/groovy/info/solidsoft/gradle/pitest/PitestPlugin.groovy index fa9a49f5..516f86f3 100644 --- a/src/main/groovy/info/solidsoft/gradle/pitest/PitestPlugin.groovy +++ b/src/main/groovy/info/solidsoft/gradle/pitest/PitestPlugin.groovy @@ -111,7 +111,7 @@ class PitestPlugin implements Plugin { extension.testSourceSets.set([javaSourceSets.getByName(SourceSet.TEST_SOURCE_SET_NAME)]) extension.mainSourceSets.set([javaSourceSets.getByName(SourceSet.MAIN_SOURCE_SET_NAME)]) extension.fileExtensionsToFilter.set(DEFAULT_FILE_EXTENSIONS_TO_FILTER_FROM_CLASSPATH) - extension.useClasspathFile.set(false) + extension.useClasspathFile.set(true) extension.verbosity.set("NO_SPINNER") } diff --git a/src/test/groovy/info/solidsoft/gradle/pitest/BasicProjectBuilderSpec.groovy b/src/test/groovy/info/solidsoft/gradle/pitest/BasicProjectBuilderSpec.groovy index e2da5bec..d09134d9 100644 --- a/src/test/groovy/info/solidsoft/gradle/pitest/BasicProjectBuilderSpec.groovy +++ b/src/test/groovy/info/solidsoft/gradle/pitest/BasicProjectBuilderSpec.groovy @@ -50,6 +50,7 @@ class BasicProjectBuilderSpec extends Specification { pitestConfig = project.getExtensions().getByType(PitestPluginExtension) project.group = 'test.group' + project.pitest.useClasspathFile = false } protected PitestTask getJustOnePitestTaskOrFail() {