All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.allure.AllureRunner.kt Maven / Gradle / Ivy

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