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

解决方案

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

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

猜你喜欢

转载自www.cnblogs.com/shockwave07/p/12213285.html