How can I run all tests in a multi module multipla...
# multiplatform
h
How can I run all tests in a multi module multiplatform project? More specifically, how can I run them only on the JVM? (
gradle allTests
tries to run browser based tests which is failing for my current code and
gradle jvmTest
does not run all my tests)
c
You can disable the browser tests in gradle:
Copy code
js(IR) {
        browser {
            testTask {
                enabled = false
            }
        }
    }
m
./gradlew clean && ./gradlew build jvmTest --no-build-cache
e
gradle jvmTest
should run all the jvm parts of your your multiplatform tests. do you nave non-multiplatform modules?
h
If you also have non-multiplatform modules use the
test
task for those modules. Use
--rerun-tasks
to run all the tests, even when they are up-to-date (but this will also recompile all your modules):
./gradlew jvmTest test --rerun-tasks