Abort-Mission is a lightweight Java library providing flexible test abortion support for test groups to allow fast failures.
This project provides Gradle integration for Abort-Mission report generation.
Abort-Mission can be downloaded from a few Maven repositories. Please head to this page to find out more.
plugins {
id "com.github.nagyesta.abort-mission-gradle-plugin" version "5.0.0"
}
repositories {
mavenCentral()
}
The plugin can be configured using the following DSL
abortMission {
//Set the version of the Abort-Mission report generator we want
//to automatically download and run
toolVersion "+"
//Set whether we want Abort-Mission to automatically enhance the
//"test" task by
// - Adding the "abort-mission.report.directory" System.property
// to define where we want to store the JSON report
// - Setting the "abortMissionReport" task to the "finalize" the
// test task
skipTestAutoSetup false
//Define whether we want to use relaxed schema for JSON validation.
//Particularly useful when the Cucumber Booster is used or in case of
//a very special class name that does not match the basic regexp used.
relaxedValidation false
//Sets the directory where we want to look for the JSON input file
//and save the HTML output
reportDirectory layout.buildDirectory.dir("reports/abort-mission/").get().getAsFile()
//Controls whether the report generator should fail if any failed
//test cases where in the report
failOnError false
}
Flight Evaluation Report explained
- Strongbacks lifecycle is no longer supported while using 2.2.0 or later version of this plugin, or Gradle version above 7.2 (non-inclusive).
- Strongback functionality is completely removed in 4.1.x release as Strongbacks were very slow and hard to maintain.