diff --git a/utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator/UtTestsDialogProcessor.kt b/utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator/UtTestsDialogProcessor.kt index 6b1d0eb609..85104b3100 100644 --- a/utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator/UtTestsDialogProcessor.kt +++ b/utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator/UtTestsDialogProcessor.kt @@ -108,6 +108,9 @@ object UtTestsDialogProcessor { *model.srcClasses.map { it.containingFile.virtualFile }.toTypedArray() ) promise.onSuccess { + if (it.hasErrors() || it.isAborted) + return@onSuccess + (object : Task.Backgroundable(project, "Generate tests") { override fun run(indicator: ProgressIndicator) {