Skip to content

Commit

Permalink
Cancel test generation if compilation was not successful UnitTestBot#…
Browse files Browse the repository at this point in the history
  • Loading branch information
volivan239 authored and AbdullinAM committed Oct 17, 2022
1 parent b067af9 commit 43efb96
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 43efb96

Please sign in to comment.