[Tests] Add handler to regenerate irText testData

It is disabled by default, can be enabled by code change.
It's useful when changes in dumper is done with significant
amount of tests changed.

^KT-65460
This commit is contained in:
Pavel Kunyavskiy
2024-02-05 16:00:23 +01:00
committed by Space Team
parent 1f257e98a0
commit 5ddc31e932
5 changed files with 62 additions and 4 deletions
@@ -221,6 +221,7 @@ fun Project.projectTest(
environment("PROJECT_BUILD_DIR", project.layout.buildDirectory.get().asFile)
systemProperty("jps.kotlin.home", project.rootProject.extra["distKotlinHomeDir"]!!)
systemProperty("org.jetbrains.kotlin.skip.muted.tests", if (project.rootProject.hasProperty("skipMutedTests")) "true" else "false")
systemProperty("kotlin.test.update.test.data", if (project.rootProject.hasProperty("kotlin.test.update.test.data")) "true" else "false")
systemProperty("cacheRedirectorEnabled", project.rootProject.findProperty("cacheRedirectorEnabled")?.toString() ?: "false")
project.kotlinBuildProperties.junit5NumberOfThreadsForParallelExecution?.let { n ->
systemProperty("junit.jupiter.execution.parallel.config.strategy", "fixed")