Where Tests Live: commonTest & Friends
Source sets for shared and platform-specific tests.
Tests Get Source Sets Too
Just like your main code, tests live in their own source sets, mirroring commonMain, androidMain and iosMain.
Meet commonTest
commonTest holds tests that run on every platform. Write a test once and verify your shared logic everywhere. ✅
All lessons in this course
- The shared Module vs the App Modules
- commonMain, androidMain & iosMain
- Reading the shared build.gradle.kts
- Where Tests Live: commonTest & Friends