Added copy-paste performance tests
This commit is contained in:
@@ -1281,6 +1281,10 @@ fun main(args: Array<String>) {
|
||||
model("copyPaste/conversion", testMethod = "doPerfTest", pattern = """^([^\.]+)\.java$""")
|
||||
}
|
||||
|
||||
testClass<AbstractPerformanceLiteralKotlinToKotlinCopyPasteTest> {
|
||||
model("copyPaste/literal", testMethod = "doPerfTest", pattern = """^([^\.]+)\.kt$""")
|
||||
}
|
||||
|
||||
testClass<AbstractPerformanceHighlightingTest> {
|
||||
model("highlighter", testMethod = "doPerfTest")
|
||||
}
|
||||
|
||||
@@ -111,6 +111,7 @@ import org.jetbrains.kotlin.idea.maven.AbstractKotlinMavenInspectionTest
|
||||
import org.jetbrains.kotlin.idea.maven.configuration.AbstractMavenConfigureProjectByChangingFileTest
|
||||
import org.jetbrains.kotlin.idea.navigation.*
|
||||
import org.jetbrains.kotlin.idea.parameterInfo.AbstractParameterInfoTest
|
||||
import org.jetbrains.kotlin.idea.perf.*
|
||||
import org.jetbrains.kotlin.idea.quickfix.AbstractQuickFixMultiFileTest
|
||||
import org.jetbrains.kotlin.idea.quickfix.AbstractQuickFixMultiModuleTest
|
||||
import org.jetbrains.kotlin.idea.quickfix.AbstractQuickFixTest
|
||||
@@ -1210,6 +1211,52 @@ fun main(args: Array<String>) {
|
||||
}
|
||||
}
|
||||
|
||||
testGroup("idea/performanceTests", "idea/testData") {
|
||||
testClass<AbstractPerformanceJavaToKotlinCopyPasteConversionTest> {
|
||||
model("copyPaste/conversion", testMethod = "doPerfTest", pattern = """^([^\.]+)\.java$""")
|
||||
}
|
||||
|
||||
testClass<AbstractPerformanceNewJavaToKotlinCopyPasteConversionTest> {
|
||||
model("copyPaste/conversion", testMethod = "doPerfTest", pattern = """^([^\.]+)\.java$""")
|
||||
}
|
||||
|
||||
testClass<AbstractPerformanceLiteralKotlinToKotlinCopyPasteTest> {
|
||||
model("copyPaste/literal", testMethod = "doPerfTest", pattern = """^([^\.]+)\.kt$""")
|
||||
}
|
||||
|
||||
testClass<AbstractPerformanceHighlightingTest> {
|
||||
model("highlighter", testMethod = "doPerfTest")
|
||||
}
|
||||
|
||||
testClass<AbstractPerformanceAddImportTest> {
|
||||
model("addImport", testMethod = "doPerfTest", pattern = KT_WITHOUT_DOTS_IN_NAME)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
testGroup("idea/performanceTests", "idea/idea-completion/testData") {
|
||||
testClass<AbstractPerformanceCompletionIncrementalResolveTest> {
|
||||
model("incrementalResolve", testMethod = "doPerfTest")
|
||||
}
|
||||
|
||||
testClass<AbstractPerformanceBasicCompletionHandlerTest> {
|
||||
model("handlers/basic", testMethod = "doPerfTest", pattern = KT_WITHOUT_DOTS_IN_NAME)
|
||||
}
|
||||
|
||||
testClass<AbstractPerformanceSmartCompletionHandlerTest> {
|
||||
model("handlers/smart", testMethod = "doPerfTest")
|
||||
}
|
||||
|
||||
testClass<AbstractPerformanceKeywordCompletionHandlerTest> {
|
||||
model("handlers/keywords", testMethod = "doPerfTest")
|
||||
}
|
||||
|
||||
testClass<AbstractPerformanceCompletionCharFilterTest> {
|
||||
model("handlers/charFilter", testMethod = "doPerfTest", pattern = KT_WITHOUT_DOTS_IN_NAME)
|
||||
}
|
||||
}
|
||||
/*
|
||||
testGroup("plugins/android-extensions/android-extensions-idea/tests", "plugins/android-extensions/android-extensions-idea/testData") {
|
||||
testClass<AbstractAndroidCompletionTest> {
|
||||
model("android/completion", recursive = false, extension = null)
|
||||
|
||||
Reference in New Issue
Block a user