@@ -51,25 +51,22 @@ val e2eHomegateUrlEnv = System.getenv("E2E_HOMEGATE_URL") ?: "http://127.0.0.1:6
5151val trezorBridgeEnv = System .getenv(" TREZOR_BRIDGE" )?.toBoolean()?.toString() ? : " false"
5252val trezorBridgeUrlEnv = System .getenv(" TREZOR_BRIDGE_URL" ) ? : " http://10.0.2.2:21325"
5353val androidTestAnnotationPackage = " to.bitkit.test.annotations"
54- val androidTestAnnotationSuffix = " AndroidTest"
5554val androidTestTaskPrefix = " connectedDevDebug"
5655val androidTestTaskSuffix = " AndroidTest"
5756val androidTestAnnotationNames = file(" src/androidTest/java/to/bitkit/test/annotations" )
5857 .listFiles()
5958 ?.mapNotNull { file ->
6059 file.nameWithoutExtension.takeIf {
6160 file.isFile &&
62- file.extension == " kt" &&
63- it.endsWith(androidTestAnnotationSuffix)
61+ file.extension == " kt"
6462 }
6563 }
6664 ?.sorted()
6765 .orEmpty()
6866val requestedTaskNames = gradle.startParameter.taskNames.map { it.substringAfterLast(" :" ) }
6967
7068fun androidTestTaskName (annotationName : String ): String {
71- val taskInfix = annotationName.removeSuffix(androidTestAnnotationSuffix)
72- return " $androidTestTaskPrefix$taskInfix$androidTestTaskSuffix "
69+ return " $androidTestTaskPrefix$annotationName$androidTestTaskSuffix "
7370}
7471
7572val requestedAndroidTestAnnotation = providers.gradleProperty(" bitkitAndroidTestAnnotation" )
@@ -78,7 +75,7 @@ val requestedAndroidTestAnnotation = providers.gradleProperty("bitkitAndroidTest
7875 ?.takeIf { it.isNotEmpty() }
7976 ?.also {
8077 require(' .' !in it) {
81- " Use a simple Android test annotation name, e.g. 'DeviceUiIntegrationAndroidTest '."
78+ " Use a simple Android test annotation name, e.g. 'ComposeUi '."
8279 }
8380 require(it in androidTestAnnotationNames) {
8481 " Unsupported bitkitAndroidTestAnnotation '$it '. Supported annotations: " +
0 commit comments