how are tests supposed to be handled in multiplatf...
# multiplatform
b
how are tests supposed to be handled in multiplatform? I'm mainly building for JS and debating if I should extract functionality like data structures and easily unitestable functions into commonMain
1
c
unit tests are pretty easy, just include the kotlin.test deps in in commonTest and you can write tests in
commonTest
then run them against all your targets. Intergration tests get a bit more tricky and you normally have to write those on their respective platforms right now
(Some configuration is needed)
b
I see, thank you 🙂
b
with regards to resource folders
how do you resolve data from there
in spring projects, you can put things in separate folders and they're all merged together during test execution
c
Honestly only played with Strings in common, nothing else 😞
Not sure how the resource merger works tbh
I'm hoping it would overwrite depending on the source tree...
I know theres a bunch of improvements in upcoming 1.7.x branch
b
thank you!
c
If you have problems with resources on the JS platform, see https://gitlab.com/opensavvy/automation/kotlin-js-resources • discussed in #opensavvy
1