Skip to content

Test sources root for IntelliJ or Maven project should be suggested to create #1310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import java.util.concurrent.TimeUnit
import kotlin.io.path.pathString
import org.utbot.intellij.plugin.generator.CodeGenerationController.getAllTestSourceRoots
import org.utbot.framework.plugin.api.util.LockFile
import org.utbot.intellij.plugin.ui.utils.isBuildWithGradle

object UtTestsDialogProcessor {
private val logger = KotlinLogging.logger {}
Expand Down Expand Up @@ -105,7 +106,7 @@ object UtTestsDialogProcessor {
focusedMethods,
UtSettings.utBotGenerationTimeoutInMillis,
)
if (model.getAllTestSourceRoots().isEmpty()) {
if (model.getAllTestSourceRoots().isEmpty() && project.isBuildWithGradle) {
val errorMessage = """
<html>No test source roots found in the project.<br>
Please, <a href="https://www.jetbrains.com/help/idea/testing.html#add-test-root">create or configure</a> at least one test source root.
Expand Down