diff --git a/gradle.properties b/gradle.properties index c3eb670f..42ce441a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,4 +14,4 @@ kotlin.mpp.enableCInteropCommonization=true GROUP=com.atiurin POM_ARTIFACT_ID=ultron -VERSION_NAME=2.5.0-alpha13 +VERSION_NAME=2.5.0-alpha14 diff --git a/sample-app/build.gradle.kts b/sample-app/build.gradle.kts index 8e0c4c26..cfbab144 100644 --- a/sample-app/build.gradle.kts +++ b/sample-app/build.gradle.kts @@ -12,7 +12,7 @@ android { minSdk = 21 targetSdk = 34 multiDexEnabled = true - testInstrumentationRunner = "com.atiurin.ultron.allure.UltronAllureTestRunner" + testInstrumentationRunner = "com.atiurin.sampleapp.framework.CustomTestRunner" } compileOptions { diff --git a/sample-app/src/androidTest/java/com/atiurin/sampleapp/framework/CustomTestRunner.kt b/sample-app/src/androidTest/java/com/atiurin/sampleapp/framework/CustomTestRunner.kt new file mode 100644 index 00000000..e5df6193 --- /dev/null +++ b/sample-app/src/androidTest/java/com/atiurin/sampleapp/framework/CustomTestRunner.kt @@ -0,0 +1,5 @@ +package com.atiurin.sampleapp.framework + +import com.atiurin.ultron.allure.UltronAllureTestRunner + +class CustomTestRunner : UltronAllureTestRunner() {} \ No newline at end of file diff --git a/ultron-allure/src/main/java/com/atiurin/ultron/allure/UltronAllureTestRunner.kt b/ultron-allure/src/main/java/com/atiurin/ultron/allure/UltronAllureTestRunner.kt index 6363599d..11ac11f0 100644 --- a/ultron-allure/src/main/java/com/atiurin/ultron/allure/UltronAllureTestRunner.kt +++ b/ultron-allure/src/main/java/com/atiurin/ultron/allure/UltronAllureTestRunner.kt @@ -8,11 +8,11 @@ import com.atiurin.ultron.extensions.putArguments import com.atiurin.ultron.runner.UltronRunInformer import io.qameta.allure.android.runners.AllureAndroidJUnitRunner -class UltronAllureTestRunner : AllureAndroidJUnitRunner() { +open class UltronAllureTestRunner : AllureAndroidJUnitRunner() { val informer: UltronRunInformer = UltronAllureRunInformer() override fun onCreate(arguments: Bundle) { - arguments.putArguments("listener", UltronTestRunListener::class.java.name) + arguments.putArguments("listener", UltronTestRunListener::class.qualifiedName!!) super.onCreate(arguments) } }