Tests use .kt files in testData/ directories with special directive comments:
// FILE: fileName.kt - Split test into multiple files // MODULE: moduleName - Define module boundaries // MODULE: name(dep1, dep2) - Module with dependencies // Common directives for language features and compiler options // LANGUAGE: +Feature - Enable language feature // API_VERSION: 1.9 - Set API version // WITH_STDLIB - Include stdlib in compilation
Tests are generated from abstract test runners. After adding test data:
testData/ directory./gradlew generateTests*Generated.java files in tests-gen/