
ru.tinkoff.allure.AllureRunner.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of allure-common Show documentation
Show all versions of allure-common Show documentation
Android library for generating instrumentation reports in Allure format
The newest version!
package ru.tinkoff.allure
import org.junit.runner.notification.RunNotifier
import org.junit.runners.BlockJUnit4ClassRunner
/**
* @author Badya on 01.06.2017.
*/
open class AllureRunner(klass: Class<*>) : BlockJUnit4ClassRunner(klass) {
override fun run(notifier: RunNotifier) {
val listener = AllureRunListener()
notifier.addListener(listener)
listener.testRunStarted()
try {
super.run(notifier)
} finally {
listener.testRunFinished()
notifier.removeListener(listener)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy