Skip to content

Commit

Permalink
Open UltronAllureTestRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-tiurin committed Jul 31, 2024
1 parent 07327cd commit 29a6322
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sample-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ android {
minSdk = 21
targetSdk = 34
multiDexEnabled = true
testInstrumentationRunner = "com.atiurin.ultron.allure.UltronAllureTestRunner"
testInstrumentationRunner = "com.atiurin.sampleapp.framework.CustomTestRunner"
}

compileOptions {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.atiurin.sampleapp.framework

import com.atiurin.ultron.allure.UltronAllureTestRunner

class CustomTestRunner : UltronAllureTestRunner() {}
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 29a6322

Please sign in to comment.