what should the source folder be for junit tests i...
# multiplatform
r
what should the source folder be for junit tests in a multiplatform module? I thought it should be
androidTest
- but when intellij tries to run my junit tests in
androidTest
source folder - it tries to run them on the emulator - is that normal? I thought multiplatform instrumentation tests should be in
androidAndoidTest
on the old source layout, your expectations should be correct, but on the new source layout,
androidTest
directories are included in the
androidInstrumentedTest
source set
can you check your Kotlin version and whether your Gradle properties are set to use the new layout?
r
I'm on 1.7.20
e
hmm. and your tests are in Kotlin or Java? (in the old layout, that did make a difference)
r
all kotlin
e
that's odd, I wonder if it's an KTIJ issue, then.
(just to be clear, your tests are in
src/androidTest/kotlin
, not
src/androidTest/java
right? Kotlin files will be compiled even in the latter directory, but the two get different treatment)
r
oh wow ! .. i think that was it! maybe they wernt working for a while as I've been refactoring
thanks
e
glad to help