Extract VisualizerDirectives to separate file
This commit is contained in:
committed by
TeamCityServer
parent
de351d8bd3
commit
0160174c7a
@@ -9,7 +9,6 @@ import org.jetbrains.kotlin.platform.jvm.JvmPlatforms
|
|||||||
import org.jetbrains.kotlin.test.Constructor
|
import org.jetbrains.kotlin.test.Constructor
|
||||||
import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder
|
import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder
|
||||||
import org.jetbrains.kotlin.test.directives.JvmEnvironmentConfigurationDirectives
|
import org.jetbrains.kotlin.test.directives.JvmEnvironmentConfigurationDirectives
|
||||||
import org.jetbrains.kotlin.test.directives.model.SimpleDirectivesContainer
|
|
||||||
import org.jetbrains.kotlin.test.model.DependencyKind
|
import org.jetbrains.kotlin.test.model.DependencyKind
|
||||||
import org.jetbrains.kotlin.test.model.FrontendFacade
|
import org.jetbrains.kotlin.test.model.FrontendFacade
|
||||||
import org.jetbrains.kotlin.test.model.FrontendKind
|
import org.jetbrains.kotlin.test.model.FrontendKind
|
||||||
@@ -64,11 +63,3 @@ abstract class AbstractVisualizerTest : AbstractKotlinCompilerTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal object VisualizerDirectives : SimpleDirectivesContainer() {
|
|
||||||
val TEST_FILE_PATH by stringDirective(
|
|
||||||
description = "Specify that part of test file path must be replaced with EXPECTED_FILE_PATH"
|
|
||||||
)
|
|
||||||
val EXPECTED_FILE_PATH by stringDirective(
|
|
||||||
description = "Specify the path to expected result file that will be inserted instead of TEST_FILE_PATH"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||||
|
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.jetbrains.kotlin.visualizer
|
||||||
|
|
||||||
|
import org.jetbrains.kotlin.test.directives.model.SimpleDirectivesContainer
|
||||||
|
|
||||||
|
internal object VisualizerDirectives : SimpleDirectivesContainer() {
|
||||||
|
val TEST_FILE_PATH by stringDirective(
|
||||||
|
description = "Specify that part of test file path must be replaced with EXPECTED_FILE_PATH"
|
||||||
|
)
|
||||||
|
val EXPECTED_FILE_PATH by stringDirective(
|
||||||
|
description = "Specify the path to expected result file that will be inserted instead of TEST_FILE_PATH"
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user