@@ -49,25 +49,22 @@ val bcp47Locales = listOf(
4949val e2eBackendEnv = System .getenv(" E2E_BACKEND" ) ? : " local"
5050val e2eHomegateUrlEnv = System .getenv(" E2E_HOMEGATE_URL" ) ? : " http://127.0.0.1:6288"
5151val androidTestAnnotationPackage = " to.bitkit.test.annotations"
52- val androidTestAnnotationSuffix = " AndroidTest"
5352val androidTestTaskPrefix = " connectedDevDebug"
5453val androidTestTaskSuffix = " AndroidTest"
5554val androidTestAnnotationNames = file(" src/androidTest/java/to/bitkit/test/annotations" )
5655 .listFiles()
5756 ?.mapNotNull { file ->
5857 file.nameWithoutExtension.takeIf {
5958 file.isFile &&
60- file.extension == " kt" &&
61- it.endsWith(androidTestAnnotationSuffix)
59+ file.extension == " kt"
6260 }
6361 }
6462 ?.sorted()
6563 .orEmpty()
6664val requestedTaskNames = gradle.startParameter.taskNames.map { it.substringAfterLast(" :" ) }
6765
6866fun androidTestTaskName (annotationName : String ): String {
69- val taskInfix = annotationName.removeSuffix(androidTestAnnotationSuffix)
70- return " $androidTestTaskPrefix$taskInfix$androidTestTaskSuffix "
67+ return " $androidTestTaskPrefix$annotationName$androidTestTaskSuffix "
7168}
7269
7370val requestedAndroidTestAnnotation = providers.gradleProperty(" bitkitAndroidTestAnnotation" )
@@ -76,7 +73,7 @@ val requestedAndroidTestAnnotation = providers.gradleProperty("bitkitAndroidTest
7673 ?.takeIf { it.isNotEmpty() }
7774 ?.also {
7875 require(' .' !in it) {
79- " Use a simple Android test annotation name, e.g. 'DeviceUiIntegrationAndroidTest '."
76+ " Use a simple Android test annotation name, e.g. 'ComposeUi '."
8077 }
8178 require(it in androidTestAnnotationNames) {
8279 " Unsupported bitkitAndroidTestAnnotation '$it '. Supported annotations: " +
0 commit comments