Release 1.1.0
Note: There is a bug in this release, please use version 1.1.1 instead!
Release 1.1.0 of junit5-system-exit
contains two changes to make testing code that may call System.exit()
easier.
🏆 Changes
This release contains the following merged pull requests:
#5 - Make SystemExitPreventedException
public and add a statusCode
getter
This should help with testing CLIs.
#6 - Add new @FailOnSystemExit
annotation
When a test calls System.exit()
the JVM running the test will terminate (in most setups). Annotating a test with @FailOnSystemExit
will catch this condition and fail the test, rather than exiting the JVM the test is executing on.
🙏 Thanks!
Thank you to @alexanderabramov and @eric-unc for the suggestions!