Junit5测试套件@SelectClasses指定类执行结果不正确

通过@SelectClasses指定类运行时,@BeforeAll 和 @AfterAll注解不生效,执行顺序有问题:


但用mvn test 执行时,结果又是正常的

直接运行测试类的结果正常:

测试类的代码截图:

代码仓库地址:https://gitee.com/alice_yy/DemoWorkSpace/tree/master/Junit5TestDemo