[Analysis API] AbstractAnalysisApiBasedTest: exit from ignored tests before any analysis

It is possible that `prepareToTheAnalysis` will throw an exception for
ignored test

^KT-64468
This commit is contained in:
Dmitrii Gridin
2023-12-21 17:16:31 +01:00
committed by Space Team
parent bd9e69d196
commit c0b333dfc1
@@ -137,12 +137,6 @@ abstract class AbstractAnalysisApiBasedTest : TestWithDisposable() {
testServices = testConfiguration.testServices
val moduleStructure = createModuleStructure(testConfiguration)
try {
prepareToTheAnalysis(testConfiguration)
} catch (ignored: SkipTestException) {
return
}
if (configurator.analyseInDependentSession && isDependentModeDisabledForTheTest()) {
return
}
@@ -153,6 +147,13 @@ abstract class AbstractAnalysisApiBasedTest : TestWithDisposable() {
return
}
try {
prepareToTheAnalysis(testConfiguration)
} catch (ignored: SkipTestException) {
return
}
doTestByModuleStructure(moduleStructure, testServices)
}