Skip to content

Latest commit

 

History

History
77 lines (59 loc) · 3.92 KB

README.md

File metadata and controls

77 lines (59 loc) · 3.92 KB

Abort-Mission

GitHub license Java version latest-release Gradle Plugin JavaCI

code-climate-maintainability code-climate-tech-debt last_commit wiki

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.

Installation

Abort-Mission can be downloaded from a few Maven repositories. Please head to this page to find out more.

Minimal configuration

build.gradle

plugins {
    id "com.github.nagyesta.abort-mission-gradle-plugin" version "5.0.0"
}

repositories {
    mavenCentral()
}

Configuration properties

The plugin can be configured using the following DSL

build.gradle

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
}

About the reports

Flight Evaluation Report explained

Limitations

  • 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.