Idea 无法运行单元测试解决方案


问题

最近发现在 idea 中运行单测时,菜单显示「Nothing here」,如图

这个问题在 mac 上 idea 社区版出现,版本号详情

IntelliJ IDEA 2019.3.1 (Community Edition)
Build #IC-193.5662.53, built on December 18, 2019
Runtime version: 11.0.5+10-b520.17 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.2
GC: ParNew, ConcurrentMarkSweep
Memory: 2014M
Cores: 4
Registry: ide.tooltip.initialDelay=885
Non-Bundled Plugins: GrepConsole, GsonFormat, IdeaVIM, LazySpring, Lombook Plugin, MavenRunHelper, String Manipulation, com.mallowigi, com.tylerthrailkill.intellij.solarized, com.werfad, com.zhaow.restful.toolkit, in.1ton.idea.spring.assistant.plugin, izhangzhihao.rainbow.brackets, net.vektah.codeglance, zielu.gittoolbox

windows 和 linux 版无此问题。

解决方案

在插件中心取消激活 gradle,如图

 

 禁用这个插件后,再次点击单测左边的箭头,发现运行单测的菜单回来了。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM