Always add new tests to the current recommended test infrastructure rather than legacy systems that are being phased out. This reduces technical debt and ensures tests remain maintainable as the codebase evolves.
Always add new tests to the current recommended test infrastructure rather than legacy systems that are being phased out. This reduces technical debt and ensures tests remain maintainable as the codebase evolves.
When adding a new test:
Example:
// Instead of adding to legacy build.gradle:
// standaloneTest("new_feature") {
// source = "runtime/new_feature/test.kt"
// }
// Add a proper test class to the new infrastructure:
// e.g., in native/native.tests/tests/org/jetbrains/kotlin/konan/test/blackbox/NewFeatureTest.kt
class NewFeatureTest : AbstractNativeTest() {
@Test
fun testNewFeature() {
// Test implementation
}
}
For some test types, you may need to run generation tasks after adding new test data files.
Enter the URL of a public GitHub repository