天天看點

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

繼續閱讀