File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/generator Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ import java.util.concurrent.TimeUnit
49
49
import kotlin.io.path.pathString
50
50
import org.utbot.intellij.plugin.generator.CodeGenerationController.getAllTestSourceRoots
51
51
import org.utbot.framework.plugin.api.util.LockFile
52
+ import org.utbot.intellij.plugin.ui.utils.isBuildWithGradle
52
53
53
54
object UtTestsDialogProcessor {
54
55
private val logger = KotlinLogging .logger {}
@@ -105,7 +106,7 @@ object UtTestsDialogProcessor {
105
106
focusedMethods,
106
107
UtSettings .utBotGenerationTimeoutInMillis,
107
108
)
108
- if (model.getAllTestSourceRoots().isEmpty()) {
109
+ if (model.getAllTestSourceRoots().isEmpty() && project.isBuildWithGradle ) {
109
110
val errorMessage = """
110
111
<html>No test source roots found in the project.<br>
111
112
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