Skip to content

Commit 53c3b3f

Browse files
authored
Cancel test generation if compilation was not successful #1100 (#1103)
1 parent 677c15c commit 53c3b3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator/UtTestsDialogProcessor.kt

+3
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ object UtTestsDialogProcessor {
108108
*model.srcClasses.map { it.containingFile.virtualFile }.toTypedArray()
109109
)
110110
promise.onSuccess {
111+
if (it.hasErrors() || it.isAborted)
112+
return@onSuccess
113+
111114
(object : Task.Backgroundable(project, "Generate tests") {
112115

113116
override fun run(indicator: ProgressIndicator) {

0 commit comments

Comments
 (0)