Allure integrations for java test frameworks
Clone or download
Permalink
Failed to load latest commit information.
.github update issue template Jul 10, 2017
allure-assertj improve test coverage (fixes #238, fixes #145, via #267) Nov 12, 2018
allure-attachments improve test coverage (fixes #238, fixes #145, via #267) Nov 12, 2018
allure-cucumber-jvm improve test coverage (fixes #238, fixes #145, via #267) Nov 12, 2018
allure-cucumber2-jvm improve test coverage (fixes #238, fixes #145, via #267) Nov 12, 2018
allure-cucumber3-jvm improve test coverage (fixes #238, fixes #145, via #267) Nov 12, 2018
allure-descriptions-javadoc migrate build scripts to kotlin (via #254) Oct 30, 2018
allure-httpclient migrate build scripts to kotlin (via #254) Oct 30, 2018
allure-java-commons-test improve test coverage (fixes #238, fixes #145, via #267) Nov 12, 2018
allure-java-commons improve test coverage (fixes #238, fixes #145, via #267) Nov 12, 2018
allure-java-migration remove commons-lang3 from java-commons module (#256) Oct 31, 2018
allure-jax-rs migrate build scripts to kotlin (via #254) Oct 30, 2018
allure-jbehave improve test coverage (fixes #238, fixes #145, via #267) Nov 12, 2018
allure-jsonunit improve junit platform integration (fixes #189, fixes #180, via #261) Nov 1, 2018
allure-junit-platform improve junit platform integration (fixes #189, fixes #180, via #261) Nov 1, 2018
allure-junit4-aspect update aop.xml (via #264) Nov 7, 2018
allure-junit4 migrate build scripts to kotlin (via #254) Oct 30, 2018
allure-junit5 improve junit platform integration (fixes #189, fixes #180, via #261) Nov 1, 2018
allure-model migrate build scripts to kotlin (via #254) Oct 30, 2018
allure-okhttp3 migrate build scripts to kotlin (via #254) Oct 30, 2018
allure-rest-assured migrate build scripts to kotlin (via #254) Oct 30, 2018
allure-selenide migrate build scripts to kotlin (via #254) Oct 30, 2018
allure-servlet-api migrate build scripts to kotlin (via #254) Oct 30, 2018
allure-spock migrate build scripts to kotlin (via #254) Oct 30, 2018
allure-spring-boot migrate build scripts to kotlin (via #254) Oct 30, 2018
allure-spring4-test migrate build scripts to kotlin (via #254) Oct 30, 2018
allure-spring4-webmvc migrate build scripts to kotlin (via #254) Oct 30, 2018
allure-testng improve test coverage (fixes #238, fixes #145, via #267) Nov 12, 2018
gradle improve junit platform integration (fixes #189, fixes #180, via #261) Nov 1, 2018
.gitignore update deps (via #231) Jul 11, 2018
AUTHORS update authors file Feb 14, 2017
CODE_OF_CONDUCT.md add github stuff Jun 16, 2017
Jenkinsfile add allure report (via #161) Nov 14, 2017
LICENSE add license Mar 21, 2017
README.md add support for jax-rs compatible clients (via #248) Oct 25, 2018
build.gradle.kts add host and thread labels for junit platform tests (via #260) Nov 1, 2018
gradle.properties [Gradle Release Plugin] - new version commit: '2.9-SNAPSHOT'. Nov 12, 2018
gradlew fix class fixtures (fixes #99, via #100) Jul 9, 2017
gradlew.bat init commit Feb 12, 2017
settings.gradle.kts migrate build scripts to kotlin (via #254) Oct 30, 2018

README.md

Allure Java Integrations bintray-badge

The repository contains new versions of adaptors for JVM-based test frameworks.

All the artifacts are deployed to https://dl.bintray.com/qameta/maven.

TestNG

The new TestNG adaptors is pretty much ready. To use the adaptor you should add the following dependency:

<dependency>
   <groupId>io.qameta.allure</groupId>
   <artifactId>allure-testng</artifactId>
   <version>$LATEST_VERSION</version>
</dependency>

also you need to configure AspectJ weaver to support steps.

JUnit 4

The first draft of a new JUnit 4 adaptor is ready. To use the adaptor you should add the following dependency:

<dependency>
   <groupId>io.qameta.allure</groupId>
   <artifactId>allure-junit4</artifactId>
   <version>$LATEST_VERSION</version>
</dependency>

JUnit 5

To use JUnit 5 simply add the following dependency to your project:

<dependency>
   <groupId>io.qameta.allure</groupId>
   <artifactId>allure-junit5</artifactId>
   <version>$LATEST_VERSION</version>
</dependency>

Selenide

Listener for Selenide, that logging steps for Allure:

<dependency>
   <groupId>io.qameta.allure</groupId>
   <artifactId>allure-selenide</artifactId>
   <version>$LATEST_VERSION</version>
</dependency>

Usage example:

SelenideLogger.addListener("AllureSelenide", new AllureSelenide().screenshots(true).savePageSource(false));

Rest Assured

Filter for rest-assured http client, that generates attachment for allure.

<dependency>
   <groupId>io.qameta.allure</groupId>
   <artifactId>allure-rest-assured</artifactId>
   <version>$LATEST_VERSION</version>
</dependency>

Usage example:

.filter(new AllureRestAssured())

You can specify custom templates, which should be placed in src/main/resources/tpl folder:

.filter(new AllureRestAssured()
        .withRequestTemplate("custom-http-request.ftl")
        .withResponseTemplate("custom-http-response.ftl"))

OkHttp

Interceptor for OkHttp client, that generates attachment for allure.

<dependency>
   <groupId>io.qameta.allure</groupId>
   <artifactId>allure-okhttp3</artifactId>
   <version>$LATEST_VERSION</version>
</dependency>

Usage example:

.addInterceptor(new AllureOkHttp3())

You can specify custom templates, which should be placed in src/main/resources/tpl folder:

.addInterceptor(new AllureOkHttp3()
                .withRequestTemplate("custom-http-request.ftl")
                .withResponseTemplate("custom-http-response.ftl"))

Http client

Interceptors for Apache HTTP client, that generates attachment for allure.

<dependency>
   <groupId>io.qameta.allure</groupId>
   <artifactId>allure-httpclient</artifactId>
   <version>$LATEST_VERSION</version>
</dependency>

Usage example:

.addInterceptorFirst(new AllureHttpClientRequest())
.addInterceptorLast(new AllureHttpClientResponse());

JAX-RS Filter

Filter that can be used with JAX-RS compliant clients such as RESTeasy and Jersey

<dependency>
   <groupId>io.qameta.allure</groupId>
   <artifactId>allure-jax-rs</artifactId>
   <version>$LATEST_VERSION</version>
</dependency>

Usage example:

.register(AllureJaxRs.class)

JsonUnit

JsonPatchMatcher is extension of JsonUnit matcher, that generates pretty html attachment for differences based on json diff patch.

<dependency>
   <groupId>io.qameta.allure</groupId>
   <artifactId>allure-jsonunit</artifactId>
   <version>$LATEST_VERSION</version>
</dependency>