Please find the essentials below or check out the wiki for more details.
Abort-Mission can be downloaded from a few Maven repositories. Please head to this page to find out more.
<dependency>
<groupId>com.github.nagyesta.abort-mission.boosters</groupId>
<artifactId>abort.booster-junit-jupiter</artifactId>
<version>RELEASE</version>
<scope>test</scope>
</dependency>
testImplementation "com.github.nagyesta.abort-mission.boosters:abort.booster-junit-jupiter:+"
The minimal setup consists of only 3 steps in case you are using this booster.
- Implement MissionOutline named as
MissionOutlineDefinition
preferably in your root package - Annotate your tests with @LaunchAbortArmed
- Make sure the Extension we are adding is the one running first (in case you are using others, like the ones offered by Spring.)
- 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.
- 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