Skip to content

Commit c09568f

Browse files
Existing test file without test class obstruct generation #160 (#425)
1 parent 2ec8fb3 commit c09568f

File tree

1 file changed

+1
-0
lines changed
  • utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ object TestGenerator {
207207
CodegenLanguage.KOTLIN -> "Kotlin Class"
208208
}
209209
)
210+
runWriteAction { testDirectory.findFile(testClassName + model.codegenLanguage.extension)?.delete() }
210211
val createFromTemplate: PsiElement = FileTemplateUtil.createFromTemplate(
211212
fileTemplate,
212213
testClassName,

0 commit comments

Comments
 (0)