The repository contains Allure2 adaptors for JVM-based test frameworks targeting Kotlin and Java with 1.6 source compatibility.
The core of this library was ported from allure-java
. Thanks to that allure-kotlin
has the same API, features, test coverage and solutions as allure-java
. On top of the core library support for Kotlin and Android test frameworks were added.
Check out the Allure Documentation.
repositories {
maven { url 'https://dl.bintray.com/qameta/maven' }
}
dependencies {
testImplementation "io.qameta.allure:allure-kotlin-model:$LATEST_VERSION"
testImplementation "io.qameta.allure:allure-kotlin-commons:$LATEST_VERSION"
testImplementation "io.qameta.allure:allure-kotlin-junit4:$LATEST_VERSION"
}
Attach the AllureJunit4
run listener using one of available methods:
- Attach the listener in build tool
- Maven - use Maven Surfire Plugin
- Gradle - use JUnit Foundation (example)
- Use predefined test runner
@RunWith(AllureRunner::class)
class MyTest {
...
}
@RunWith(AllureParametrizedRunner::class)
class MyParameterizedTest {
...
}
...
The Allure Framework is released under version 2.0 of the Apache License.