Handle exceptions

This commit is contained in:
Simon Ogorodnik
2018-03-30 03:55:43 +02:00
parent 7b155fc9d4
commit d2a60164c6
@@ -78,7 +78,11 @@ class AllKotlinInspectionTest : DaemonAnalyzerTestCase() {
val tool = it.tool.tool as? LocalInspectionTool ?: return@forEach
if (it.tool.language != null && it.tool.language!! !in setOf("kotlin", "UAST")) return@forEach
val result = measureNanoTime {
tool.analyze(psiFile)
try {
tool.analyze(psiFile)
} catch (t: Throwable) {
t.printStackTrace()
}
}
results[it.tool.id] = result
}