Generate pretty HTML files from cucumber report json files. Uses https://github.com/damianszczepanik/cucumber-reporting for generating the reports.
The plugin will automatically run at the end of your test
task. You can also run it manually with the generateCucumberReports
task.
(See this for the up-to-date version on the Gradle Plugin Portal)
All gradle versions:
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.github.spacialcircumstances.gradle-cucumber-reporting:gradle-cucumber-reporting:0.0.16"
}
}
apply plugin: "com.github.spacialcircumstances.gradle-cucumber-reporting"
New plugin mechanism (Gradle 2.1+):
plugins {
id "com.github.spacialcircumstances.gradle-cucumber-reporting" version "0.0.16"
}
Somewhere in your build.gradle
add the following snippet:
cucumberReports {
outputDir = file('path/for/generated/html')
buildName = '0'
reports = files('path/to/cucumber-report.json', 'another/cucumber-json.json')
}
parallelTesting
:true
orfalse
determines if multiple tests were run in parallelclassifications
: A map with <String, String> pairs that are added to the HTML report, for example os name etc.testTasksFinalizedByReport
:true
orfalse
determines if thegenerateCucumberReports
task finalizes the test tasks.true
by default.
Just as https://github.com/damianszczepanik/cucumber-reporting, this plugin is available under the terms of the LGPL 2.1 license.