Skip to content

Commit

Permalink
Only one of generated tests is run with Generate and Run #1149
Browse files Browse the repository at this point in the history
Additional fix for TestNG
  • Loading branch information
Vassiliy-Kudryashov committed Oct 20, 2022
1 parent 3cd8e7b commit f7824b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class RunConfigurationHelper {
companion object {
private val logger = KotlinLogging.logger {}

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

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

0 comments on commit f7824b5

Please sign in to comment.