Simple Allure 2 configuration for Gradle

“Green plants covering the walls of a multi-story building” by 贝莉儿 NG on Unsplash
plugins {
id 'io.qameta.allure' version '2.8.1'
}
allure {
version = '2.14.0'
}
dependencies {
implementation('io.qameta.allure:allure-okhttp3:2.14.0')
}
final AllureOkHttp3 allureOkHttp3 = new AllureOkHttp3();final OkHttpClient okHttpClient = new OkHttpClient.Builder()
.addInterceptor(allureOkHttp3)
.build();
dependencies {
testRuntimeOnly('io.qameta.allure:allure-junit5:2.14.0')
}
dependencies {
testImplementation('io.qameta.allure:allure-selenide:2.14.0')
}
@BeforeAll
public void setUp() {
SelenideLogger.addListener("allure", new AllureSelenide());
}
@AfterAll
public void tearDown() {
SelenideLogger.removeListener("allure");
}
allure.results.directory=build/allure-results

--

--

Backend Developer | Automation QA from Belarus

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store