Skip to content

Commit e2c709c

Browse files
authored
ci: Add ability to filter tests based on feature (#5496)
* Add ability to filter tests based on feature * feedback
1 parent 1d94b45 commit e2c709c

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
@@ -93,9 +93,14 @@ tasks.register<Test>("uiTest") {
9393

9494
dependsOn(prepareAmazonQTest)
9595
dependsOn(testPlugins)
96-
9796
systemProperty("ui.test.plugins", testPlugins.get().asPath)
9897
systemProperty("org.gradle.project.ideProfileName", ideProfile.name)
98+
val testSuite = System.getenv("TEST_DIR") ?: ""
99+
if (testSuite.isNotBlank()) {
100+
filter {
101+
includeTestsMatching(testSuite)
102+
}
103+
}
99104
}
100105

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

0 commit comments

Comments
 (0)