Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from Grigory-Rylov/dont_clear_old_run_listeners
Browse files Browse the repository at this point in the history
Add current AllureAndroidListener to other listeners in bundle
  • Loading branch information
andrushsha authored Mar 1, 2018
2 parents e432df1 + 2b5ec67 commit 208fb5e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ import android.support.test.runner.AndroidJUnitRunner
@Keep
open class AllureAndroidRunner : AndroidJUnitRunner() {
override fun onCreate(arguments: Bundle) {
arguments.putCharSequence("listener", AllureAndroidListener::class.java.name)
arguments.putCharSequence("listener", arguments.getCharSequence("listener")
?.let {
"$it,${AllureAndroidListener::class.java.name}"
}
?: AllureAndroidListener::class.java.name)
super.onCreate(arguments)
}
}
}

0 comments on commit 208fb5e

Please sign in to comment.