GithubHelp home page GithubHelp logo

arazantsau / allure-gradle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from allure-framework/allure-gradle

0.0 0.0 0.0 179 KB

Allure Gradle Plugin

License: Apache License 2.0

Java 54.28% Groovy 44.81% Gherkin 0.28% Kotlin 0.63%

allure-gradle's Introduction

Allure plugin for Gradle build-badge release-badge bintray-badge

Now Allure Plugin allows you to integrate Allure into TestNG, Junit4 and Cucumber JVM gradle projects

Basic usage

this configuration will use gradle integration for Junit4 and TestNG and generate report for a single-module project

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath "io.qameta.allure:allure-gradle:<latest>"
    }
}

apply plugin: 'io.qameta.allure'

allure {
    autoconfigure = true
    version = '2.4.1'
}

Full configuration

allure {
    version = '2.4.1'
    aspectjweaver = true
    autoconfigure = true

    resultsGlob = {
       include '/path/to/project/**/build/**/allure-results'
       exclude '/path/to/project/some-project/build'
    }
    
    resultsDir = file('/path/to/project/module1/build/allure-results')
    reportDir = file('build/allure-results')
    
    useJUnit4 {
       version = '2.0-BETA10'
    }
    
    useJUnit5 {
       version = '2.0-BETA10'
    }

    useTestNG {
       version = '2.0-BETA10'
    }
    
    useCucumberJVM {
       version = '2.0-BETA10'
    }
    
    useCucumber2JVM {
       version = '2.0-BETA10'
    }
    
    useSpock {
       version = '2.0-BETA10'
    }
    
    downloadLink = 'https://dl.bintray.com/qameta/generic/io/qameta/allure/allure/2.1.1/allure-2.1.1.zip'
}

autoconfigure boolean - a flag to specify usage of autoconfiguration, plugin will attempt to find test platform integration provided by Gradle (currently works only for Junit4 and TestNG)

aspectjveaver boolean - a flag to specify inclusion/exclusion of aspectjweaver runtime agent

clean boolean - enable --clean option for the Allure commandline tool

version String - specify report generator version, note, this property is necessary to enable allure and aggregatedAllureReport tasks

configuration String (default = 'testCompile') - configuration name where to bind plugin dependencies

resultsDir File - directory for Allure results in the current project, build\allure-results by default

reportDir File - directory for Allure results in the current project, build\allure-results by default

allureJavaVersion String - version of allure java release to be used for autoconfiguration

downloadLink String - custom location of Allure distribution to download from, by default allure is downloaded from bintray by sspecified version and installed to .allure folder in the project root.

Tasks

allureReport

Creates Allure report for a single-module project

allureServe

Creates Allure report for a single-module project in the tmp folder and opens it in the default browser.

allure-gradle's People

Contributors

eroshenkoam avatar qameta-ci avatar ehborisov avatar baev avatar boolivar avatar abendt avatar andrcuns avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.