Skip to content

Commit 4646df9

Browse files
committed
Add ability to filter tests based on feature
1 parent b80479f commit 4646df9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ui-tests-starter/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,14 @@ tasks.register<Test>("uiTest") {
8888

8989
dependsOn(prepareAmazonQTest)
9090
dependsOn(testPlugins)
91-
9291
systemProperty("ui.test.plugins", testPlugins.get().asPath)
9392
systemProperty("org.gradle.project.ideProfileName", ideProfile.name)
93+
val testSuite = System.getenv("TEST_SUITE")
94+
if (testSuite.toString().isNotBlank()) {
95+
filter {
96+
includeTestsMatching(testSuite.toString())
97+
}
98+
}
9499
}
95100

96101
// hack to disable ui tests in ./gradlew check

0 commit comments

Comments
 (0)