今天和往常一樣,老程打開IDEA,運行程序,結果報“TestEngine with ID 'junit-vintage' failed to discover tests”。
納悶了,昨天還可以的,於是,本著解決問題的目的,經過一番研究,終於搞定了。
起因
- junit的版本我用的是4.10,後續又引用了4.12
解決方法
- 打開file---Settings--搜索--Plugins--安裝maven helper
- 打開pom.xml
- 切換到Text
- 找到衝突的地方,刪除即可
- RefreshUI刷新即可
閱讀更多 老程的自習社 的文章
關鍵字: 刪除 TestEngine 即可