Skip to content
Merged
Show file tree
Hide file tree
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
Already created test source root is not found in Idea project #497
  • Loading branch information
Vassiliy-Kudryashov committed Jul 21, 2022
commit f1d678edf4e5fd7a0d8f4e9687ce1c88a0603abd
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ enum class CodegenLanguage(
@Suppress("unused") override val description: String = "Generate unit tests in $displayName"
) : CodeGenerationSettingItem {
JAVA(displayName = "Java"),
KOTLIN(displayName = "Kotlin");
KOTLIN(displayName = "Kotlin (experimental)");

enum class OperatingSystem {
WINDOWS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import java.io.File
import javax.swing.DefaultComboBoxModel
import javax.swing.JList
import org.utbot.common.PathUtil
import org.utbot.framework.plugin.api.CodegenLanguage
import org.utbot.intellij.plugin.models.GenerateTestsModel
import org.utbot.intellij.plugin.ui.utils.addDedicatedTestRoot
import org.utbot.intellij.plugin.ui.utils.suitableTestSourceRoots
Expand Down Expand Up @@ -46,7 +45,7 @@ class TestFolderComboWithBrowseButton(private val model: GenerateTestsModel) : C
}
}

val testRoots = model.testModule.suitableTestSourceRoots(CodegenLanguage.JAVA).toMutableList()
val testRoots = model.testModule.suitableTestSourceRoots().toMutableList()
model.testModule.addDedicatedTestRoot(testRoots)
if (testRoots.isNotEmpty()) {
configureRootsCombo(testRoots)
Expand Down