Cannot create Launcher without at least one TestEngine; consider adding an engine implementation JAR

当在IDEA 使用gradle创建工程时,默认是使用junit5的,但现在我想切换为junit4,于是便把依赖里junit5的包全部删除,然后导入junit4的包,这时若是执行测试代码就会出现标题上的错误,该如何解决呢,还要删除一处地方,即如下图位置代码注释即可

Cannot create Launcher without at least one TestEngine; consider adding an engine implementation JAR

 

上一篇:添加Gateway依赖后启动报错Consider defining a bean of type ‘org.springframework.http.codec.ServerCodecConfigur


下一篇:Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), please put i