File tree Expand file tree Collapse file tree
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ import java.util.concurrent.TimeUnit
4949import kotlin.io.path.pathString
5050import org.utbot.intellij.plugin.generator.CodeGenerationController.getAllTestSourceRoots
5151import org.utbot.framework.plugin.api.util.LockFile
52+ import org.utbot.intellij.plugin.ui.utils.isBuildWithGradle
5253
5354object UtTestsDialogProcessor {
5455 private val logger = KotlinLogging .logger {}
@@ -105,7 +106,7 @@ object UtTestsDialogProcessor {
105106 focusedMethods,
106107 UtSettings .utBotGenerationTimeoutInMillis,
107108 )
108- if (model.getAllTestSourceRoots().isEmpty()) {
109+ if (model.getAllTestSourceRoots().isEmpty() && project.isBuildWithGradle ) {
109110 val errorMessage = """
110111 <html>No test source roots found in the project.<br>
111112 Please, <a href="https://www.jetbrains.com/help/idea/testing.html#add-test-root">create or configure</a> at least one test source root.
You can’t perform that action at this time.
0 commit comments