jeff
01/28/2024, 10:55 PM> Task :site:kspKotlinJvm FAILED
e: [ksp] java.lang.IllegalStateException: KobwebProcessorProvider: Missing processor mode (kobweb.mode)
at com.varabyte.kobweb.ksp.KobwebProcessorProvider.create(KobwebProcessorProvider.kt:20)
at com.google.devtools.ksp.AbstractKotlinSymbolProcessingExtension$doAnalysis$7$1.invoke(KotlinSymbolProcessingExtension.kt:277)...snip...
Looks like in order to even compile, Kobweb wants to know what mode should be used. But I don't care about mode, I'm just running tests. Did I miss something obvious? Can I set a mode from my test run configuration to make it happy?David Herman
01/29/2024, 1:08 AMDavid Herman
01/29/2024, 1:08 AMDavid Herman
01/29/2024, 1:08 AMjeff
01/29/2024, 1:10 AMDavid Herman
01/29/2024, 1:10 AMDavid Herman
01/29/2024, 1:11 AMDavid Herman
01/29/2024, 1:55 AM0.15.5-SNAPSHOT
in case you wanted to tryjeff
01/29/2024, 2:15 AMSeveriano Jaramillo
05/20/2025, 4:56 AMjsTest
but when I tried to run it with ./gradlew :site:jsTest
I got this error
Execution failed for task ':site:jsTest'.
> Failed to execute all tests:
:site:jsBrowserTest: java.lang.IllegalStateException: Errors occurred during launch of browser for testing.
- ChromeHeadless
Please make sure that you have installed browsers.
Or change it via
browser {
testTask {
useKarma {
useFirefox()
useChrome()
useSafari()
}
}
}
I would prefer not to involve a browser for a simple logic validation test. I see two possible options:
• Configure node.js to be able to run unit tests without running a browser
• Move my logic to commonMain
and move the test to jvmTest
. This way I assume I can run the test on the JVM.
Is that feasible? Or am I totally in the wrong path?Severiano Jaramillo
05/20/2025, 5:35 AMkotlin {
js(IR) {
browser {
testTask {
useKarma {
// Use Chrome by default for browser tests
useChrome()
}
}
}
nodejs {
// Configure NodeJS for running tests
testTask {
useMocha()
}
}
}
...
}
And I am able to run tests using ./gradlew jsNodeTest
🙂David Herman
05/20/2025, 5:52 PM