Emil Kantis
05/31/2021, 9:03 AM./gradlew test
compared to running the test through IntelliJ?wasyl
05/31/2021, 9:07 AM./gradlew test -Dkotest.framework.sourceref.disable=true
?Emil Kantis
05/31/2021, 9:09 AMwasyl
05/31/2021, 9:13 AMEmil Kantis
05/31/2021, 9:17 AMEmil Kantis
05/31/2021, 9:22 AM--tests "<http://package.to|package.to>.test.SomeTest"
makes it run fastwasyl
05/31/2021, 9:23 AM@AutoScan
you can try kotest.framework.classpath.scanning.config.disable
and kotest.framework.classpath.scanning.autoscan.disable
properties which will disable some classpath scanning (but only that related to listeners and extensions, not the one for tests)
*also will disable scanning for configuration classeswasyl
05/31/2021, 9:26 AMEmil Kantis
05/31/2021, 10:33 AMsam
05/31/2021, 12:02 PMEmil Kantis
05/31/2021, 12:35 PMdependencies {
implementation("org.slf4j", "slf4j-api", "1.7.30")
implementation("org.slf4j", "slf4j-log4j12", "1.7.30")
testImplementation("io.mockk", "mockk", Versions.MOCKK)
testImplementation("io.kotest", "kotest-runner-junit5-jvm", Versions.KOTEST)
}
sam
06/01/2021, 2:29 PMEmil Kantis
06/01/2021, 2:31 PMsam
06/01/2021, 5:39 PMsam
06/01/2021, 5:39 PMsam
06/01/2021, 5:39 PMEmil Kantis
06/01/2021, 5:40 PMEmil Kantis
06/01/2021, 5:51 PMKOTEST_DEBUG
😕 but running gradle with debug flag showed that it was stuck in a loop doing this: https://gist.github.com/Kantis/85e13c62a9795691b00eadfe91c91b3asam
06/01/2021, 5:59 PMEmil Kantis
06/01/2021, 6:33 PMsam
06/01/2021, 6:34 PMEmil Kantis
06/01/2021, 6:37 PMEmil Kantis
06/01/2021, 7:36 PMsam
06/01/2021, 7:37 PMsam
06/01/2021, 7:37 PMsam
06/01/2021, 7:37 PMsam
06/01/2021, 7:38 PMtest {
systemProperty "KOTEST_DEBUG", "true"
}
might workEmil Kantis
06/01/2021, 7:43 PMSystem.getenv
. Is this what we're looking for?
2021-06-01T21:40:56.233+0200 [DEBUG] [TestEventLogger] 1622576456233 Registering junit dynamic test: : [engine:kotest]/[spec:some.package.SimulationTest]/[test:Simulation tests 1]/[test:Input should match]
2021-06-01T21:40:56.233+0200 [DEBUG] [TestEventLogger] 1622576456233 Notifying junit that execution has started: : [engine:kotest]/[spec:some.package.SimulationTest]/[test:Simulation tests 1]/[test:Input should match]
sam
06/01/2021, 7:43 PMsam
06/01/2021, 7:43 PMsam
06/01/2021, 7:44 PMJUnit discovery request
and
JUnit discovery completed
sam
06/02/2021, 1:04 PMEmil Kantis
06/02/2021, 1:05 PM