Skip to content

Commit 0a52a4e

Browse files
committed
Handle empty test cases list (#1098)
1 parent c22971e commit 0a52a4e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ object CodeGenerationController {
122122
run(EDT_LATER) {
123123
run(WRITE_ACTION) {
124124
createUtilityClassIfNeed(utilClassListener, model, baseTestDirectory)
125-
run(EDT_LATER) {
125+
run(EDT_LATER) afterTestGeneration@{
126+
if (testFilesPointers.isEmpty()) {
127+
return@afterTestGeneration
128+
}
126129
proceedTestReport(proc, model)
127130
run(THREAD_POOL) {
128131
val sarifReportsPath =

0 commit comments

Comments
 (0)