“未收到测试事件";使用Intellij运行测试时 [英] "Test events were not received" when run tests using Intellij

查看:334
本文介绍了“未收到测试事件";使用Intellij运行测试时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Kotlin项目,当我运行JUnit测试时,在IntelliJ中看不到测试执行结果,而是得到此消息:

I have a Kotlin project and when I run my JUnit tests, I can't see tests execution result in IntelliJ and get this message instead:

未收到测试事件

test events were not received

我正在使用此设置:

macOS Mojave

Intellij CE 2019.2

JDK 11.0.3

Kotlin 1.3.50

Gradle 5.2.1

JUnit 4.12

你能帮我吗?

推荐答案

更新为相关问题.

Update to 2019.2.2 or later, which contains the fix for the related issue.

一种解决方法是通过更改委托选项,使用IntelliJ IDEA而不是Gradle运行测试.

A workaround is to run the tests using IntelliJ IDEA instead of Gradle by changing the delegation option.

这篇关于“未收到测试事件";使用Intellij运行测试时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆