Skip to content

Commit 7ca87d0

Browse files
Only one of generated tests is run with Generate and Run #1149 (#1206)
Additional fix for TestNG
1 parent c5532c8 commit 7ca87d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/util/RunConfigurationHelper.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class RunConfigurationHelper {
6464
companion object {
6565
private val logger = KotlinLogging.logger {}
6666

67-
private fun RunConfiguration.isPatternBased() = this is JavaTestConfigurationBase && testType == "pattern"
67+
private fun RunConfiguration.isPatternBased() = this is JavaTestConfigurationBase && "pattern".contentEquals(testType, true)
6868

6969
// In case we do "generate and run" for many files at once,
7070
// desired run configuration has to be one of "pattern" typed test configuration that may run many tests at once.

0 commit comments

Comments
 (0)