• Stars
    star
    357
  • Rank 119,149 (Top 3 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created almost 8 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Allure integrations for Java test frameworks

Allure Java Integrations

Build Allure Java

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));

Capture selenium logs:
SelenideLogger.addListener("AllureSelenide", new AllureSelenide().enableLogs(LogType.BROWSER, Level.ALL));
https://github.com/SeleniumHQ/selenium/wiki/Logging

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"))

gRPC

Interceptor for gRPC stubs, that generates attachment for allure.

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

Usage example:

.newBlockingStub(channel).withInterceptors(new AllureGrpc());

You can enable interception of response metadata (disabled by default)

.withInterceptors(new AllureGrpc()
                .interceptResponseMetadata(true))

By default, a step will be marked as failed in case that response contains any statuses except 0(OK). You can change this behavior, for example, for negative scenarios

.withInterceptors(new AllureGrpc()
                .markStepFailedOnNonZeroCode(false))

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

.withInterceptors(new AllureGrpc()
                .setRequestTemplate("custom-http-request.ftl")
                .setResponseTemplate("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>

Awaitility

Extended logging for poling and ignored exceptions for awaitility. For more usage example look into module allure-awaitility

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

Usage example:

Awaitility.setDefaultConditionEvaluationListener(new AllureAwaitilityListener());

More Repositories

1

allure2

Allure Report is a flexible, lightweight multi-language test reporting tool. It provides clear graphical reports and allows everyone involved in the development process to extract the maximum of information from the everyday testing process
Java
4,160
star
2

allure-python

Allure integrations for Python test frameworks
Python
725
star
3

allure1

Allure 1 isn't supported any more, please consider using Allure 2 https://github.com/allure-framework/allure2 instead
Java
712
star
4

allure-js

Allure integrations for JavaScript test frameworks
TypeScript
225
star
5

allure-pytest

Deprecated, please use https://github.com/allure-framework/allure-python instead
Python
171
star
6

allure-csharp

Allure integrations for C# test frameworks
C#
107
star
7

allure-maven

Maven plugin generating Allure report from test results
Java
96
star
8

allure-gradle

Allure Gradle Plugin
Kotlin
86
star
9

allure-android

Android library for generating instrumentation reports in Allure format
Kotlin
66
star
10

allure-docs

Allure Framework documentation
JavaScript
61
star
11

allure-phpunit

Allure integrations for PHP test frameworks: PHPUnit
PHP
60
star
12

allure-ruby

Allure integrations for Ruby test frameworks
Ruby
58
star
13

allure-kotlin

Allure integrations for test frameworks targeting Kotlin and Java with 1.6 source compatibility.
Kotlin
56
star
14

allure-codeception

Codeception framework adapter for Allure
PHP
51
star
15

allure-mocha

Deprecated, use https://github.com/allure-framework/allure-js instead
JavaScript
45
star
16

allure-npm

NPM wrapper for Allure commandline
PowerShell
37
star
17

allure-teamcity

Teamcity CI plugin allowing to generate Allure Report as build artifact
Java
37
star
18

allure-cucumber

Deprecated, use https://github.com/allure-framework/allure-ruby instead
Gherkin
36
star
19

allure-jasmine

Deprecated, use https://github.com/allure-framework/allure-js instead
JavaScript
35
star
20

allure-php-api

PHP API for Allure Framework
PHP
33
star
21

allurectl

Allure TestOps Command line tool
32
star
22

allure-rspec

Deprecated, use https://github.com/allure-framework/allure-ruby instead
Ruby
28
star
23

allure-js-commons

Deprecated, use https://github.com/allure-framework/allure-js instead
JavaScript
27
star
24

allure-bamboo

Allure plugin for Atlassian Bamboo
Java
26
star
25

allure-mstest

Deprecated, since native support for TRX results format was introduced in Allure 2
C#
19
star
26

allure-cucumberjvm

Deprecated, use https://github.com/allure-framework/allure-java instead
Java
16
star
27

allure-cucumberjs

Deprecated, use https://github.com/allure-framework/allure-js instead
JavaScript
15
star
28

allure-nunit2

Deprecated, use https://github.com/allure-framework/allure-csharp instead
C#
15
star
29

allure-nose

Deprecated, use https://github.com/allure-framework/allure-python instead
Python
15
star
30

allure-ruby-commons

Deprecated, use https://github.com/allure-framework/allure-ruby instead
Ruby
14
star
31

allure-behat

Allure Adapter for Behat framework
PHP
13
star
32

setup-allurectl

Set up your GitHub Actions workflow with a specific version of allurectl
TypeScript
13
star
33

allure-scalatest

Deprecated, use https://github.com/allure-framework/allure-java instead
Scala
13
star
34

allure-demo

The demo report
Java
11
star
35

allure-csharp-commons

Deprecated, use https://github.com/allure-framework/allure-csharp instead
C#
10
star
36

allure-karma

Allure adapter to karma test runner
JavaScript
9
star
37

allure-vstest

C#
8
star
38

allure-php-commons2

Allure integrations for PHP test frameworks: Commons Module
PHP
8
star
39

allure-debian

Debian (Ubuntu) package configuration for Allure Framework parts
Shell
7
star
40

allure2-model

Deprecated, use https://github.com/allure-framework/allure-java instead
Java
5
star
41

allure-spock

Deprecated, use https://github.com/allure-framework/allure-java instead
Groovy
5
star
42

allure-idea

Java
5
star
43

allure-vsts

Archived, please follow https://github.com/orgs/allure-framework/discussions
HTML
4
star
44

allure1-model

Java
3
star
45

allure-specs

Allure Adapter for Specs framework
Scala
3
star
46

.github

Organisation profile
1
star