Skip to content

Latest commit

 

History

History

booster-junit-jupiter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Abort-Mission

GitHub license Java version latest-release JavaCI

JUnit Jupiter Booster

codecov jupiter Stable

Please find the essentials below or check out the wiki for more details.

Quick-start

Dependency

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

Maven

<dependency>
  <groupId>com.github.nagyesta.abort-mission.boosters</groupId>
  <artifactId>abort.booster-junit-jupiter</artifactId>
  <version>RELEASE</version>
  <scope>test</scope>
</dependency>

Gradle

testImplementation "com.github.nagyesta.abort-mission.boosters:abort.booster-junit-jupiter:+"

Configuration

The minimal setup consists of only 3 steps in case you are using this booster.

  1. Implement MissionOutline named as MissionOutlineDefinition preferably in your root package
  2. Annotate your tests with @LaunchAbortArmed
    1. Make sure the Extension we are adding is the one running first (in case you are using others, like the ones offered by Spring.)
  3. Use the additional core annotations or the @Tag annotation provided by Jupiter to define your dependencies and group your tests properly

Note: Using PER_CLASS lifecycle makes countdown abort evaluation less effective as test classes are reused.

Examples

  • In case you need some basic examples, please feel free to check out this package
  • Alternatively, you can take a look at the following example project: Abort-Mission Examples