I struggled with using `ProjectConfig` when runnin...
# kotest
n
I struggled with using
ProjectConfig
when running
./gradlew jvmKotest
. It failed with error messages like
Unresolved reference 'core'.
I then looked at
kotest-examples
and saw
ProjectConfig
files for e.g.
kotest-native
and that it is in
src/nativeTest
and not in
src/nativeMain
. So turns out that I wrongly had my
ProjectConfig.kt
in
src/main/kotlin/io/kotest/provided
instead of in
src/test/kotlin/io/kotest/provided
. This always worked when running tests from within IntelliJ but failed from CLI. So would be nice to enhance the "Project Level Config" documentation to explicitly document the correct location, and to add a
ProjectConfig.kt
also to
kotest-examples/kotest-jvm
.
a
are you up to creating a PR?
n
yes, I could. Will perhaps add my usage of
ProjectConfig
to show the execution times of tests.
a
good luck
n