We need this as part of [completing our migration to JUnit 5](/spring-projects/spring-boot/issues/16942). Unfortunately, it isn't possible at the moment. https://github.com/junit-team/junit5/issues/201 is required and there may be some other changes that are needed as well.