I've modified code related to backend IR. What tes...
# kontributors
m
I've modified code related to backend IR. What tests (gradle tasks) should I run?
d
If it is JVM IR, then run tests from
compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen
m
It is common IR, it may affect all backends.
d
Ok, then you should also run js tests in
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test
and native in
kotlin-native/backend.native/tests/codegen
m
Thanks, but to what gradle tasks these paths correspond (i.e. how do I run them in cli)? For js I found
jsIrTest
, but not for jvm and native
d
For jvm it's just
:compiler:tests-common-new:test
(you can filter specific runners with
--tests
flag) I don't know extacly for native, but it most likely
:kotlin-native:backend.native:test
(also check for
kotlin-native/Readme.md
)
👀 1
Also you can use combined gradle tasks from main build file: https://github.com/JetBrains/kotlin/blob/master/build.gradle.kts#L648 But they includes a lot of different tests (not only IR tests), so running those tasks can take much time