Emil Kantis
06/19/2024, 6:15 AMSebastian Schuberth
06/19/2024, 7:15 AMkotest.framework.discovery.jar.scan.disabled
which should say kotest.framework.discovery.jar.scan.disable
without "d".Sebastian Schuberth
06/19/2024, 7:17 AMkotest.framework.discovery.jar.scan.disable
...Sebastian Schuberth
06/19/2024, 7:27 AMkotest.framework.discovery.jar.scan.disable
, but I'm actually unsure of its effect. This basically toggles ClassGraph.disableJarScanning()
when scanning for Kotest configs, but what's the actual effect when disabling this? Will only third-party JARs (of my project's dependencies) not be scanned for Kotest config, or will also JARs produced by subprojects of my own (root) project not be scanned?Emil Kantis
06/19/2024, 7:30 AMSebastian Schuberth
06/19/2024, 7:31 AMSebastian Schuberth
06/19/2024, 7:32 AMProjectConfig
is still found despite kotest.framework.discovery.jar.scan.disable = true
ππ»Emil Kantis
06/19/2024, 7:37 AMSebastian Schuberth
06/19/2024, 7:42 AMkotest.properties
which resides next to my ProjectConfig
, and now I don't see these warnings anymore even with "Kotest"-type run configurations. Is that expected, does it actually work?Sebastian Schuberth
06/19/2024, 7:43 AMtest-utils
Gradle module with my ProjectConfig
and kotest.properties
that all my tests depend on.Emil Kantis
06/19/2024, 7:43 AMkotest.properties
should work w/ both types of run configuration, afaikEmil Kantis
06/19/2024, 7:44 AMEmil Kantis
06/19/2024, 7:45 AMSebastian Schuberth
06/19/2024, 7:45 AMidea-ext
Gradle plugin to configure presets for run configurations, similar to this.Emil Kantis
06/19/2024, 7:49 AMLidonis Calhau
06/19/2024, 8:35 AMSebastian Schuberth
06/19/2024, 8:36 AMSebastian Schuberth
06/19/2024, 8:36 AMLidonis Calhau
06/19/2024, 8:38 AMVictor Cardona
06/24/2024, 4:34 PMio.kotest.engine.spec.SpecInstantiationException: Could not create instance of class com.example.Spec. Specs must have a public zero-arg constructor.
Does this change how we are supposed to activate extensions?Emil Kantis
06/24/2024, 4:36 PMEmil Kantis
06/24/2024, 4:36 PMVictor Cardona
06/24/2024, 4:37 PMEmil Kantis
06/24/2024, 4:37 PMVictor Cardona
06/24/2024, 6:05 PMobject KotestConfig : AbstractProjectConfig() {
override fun extensions(): List<Extension> = listOf(SpringExtension)
}
but whenever I set either
kotest.framework.discovery.jar.scan.disable=true
or
kotest.framework.classpath.scanning.autoscan.disable=true
all tests using SpringExtension fail to instantiate.Emil Kantis
06/24/2024, 6:06 PMVictor Cardona
06/24/2024, 6:08 PMkotest.framework.config.fqn=com.hellofresh.rms.processors.KotestConfig
in my kotest.properties.Emil Kantis
06/24/2024, 6:08 PMEmil Kantis
06/24/2024, 6:08 PMVictor Cardona
06/24/2024, 6:09 PMEmil Kantis
06/24/2024, 6:37 PMVictor Cardona
06/24/2024, 6:37 PM