Sebastian Schuberth
09/07/2023, 4:26 PMWarning: Kotest autoscan is enabled. This means Kotest will scan the classpath for extensions that are annotated with @AutoScan. To avoid this startup cost, set autoscan to false by setting the system property 'kotest.framework.classpath.scanning.config.disable=true'. For further details see <https://kotest.io/docs/next/framework/project-config.html#runtime-detection>
I'm setting
tasks.withType<Test>().configureEach {
systemProperties = mapOf(
"kotest.framework.classpath.scanning.config.disable" to "true"
)
}
in my Gradle build file, but I'm still seeing the message.Am I correct to assume that this should work?Sebastian Schuberth
09/07/2023, 4:40 PMsystemProp.kotest.framework.classpath.scanning.config.disable=true
systemProp.kotest.framework.config.fqn=org.ossreviewtoolkit.utils.test.ProjectConfig
in gradle.properties
seems to have no effect.Sebastian Schuberth
09/07/2023, 4:41 PM-Dkotest.framework.classpath.scanning.config.disable=true -Dkotest.framework.config.fqn=org.ossreviewtoolkit.utils.test.ProjectConfig
in the INtelliJ IDEA run configuration.alex.krupa
09/08/2023, 7:52 AM/resources/kotest.properties
. The resources
dir should be a sibling of your kotlin
dir.
Content:
kotest.framework.classpath.scanning.autoscan.disable=true
kotest.framework.classpath.scanning.config.disable=true
kotest.framework.config.fqn=com.example.ProjectConfig
Sebastian Schuberth
09/08/2023, 10:06 AMkotest.properties
doesn't work for me either. And actually, setting the properties on the Test
tasks should work even if Gradle is not the test runner, I believe. Weird.