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

test events were not received

I'm using this setup:

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.

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

Kotlin相关问答推荐

如何使用收件箱文件中的类运行Kotlin应用程序

Compose:LaunchedEffect在密钥更改后不会重新启动

在 Kotlin 中将两个字节转换为 UIn16

Kotlin 启动与启动(Dispatchers.Default)

Kotlin 使用委托进行隐式覆盖

Jetpack Compose - 单击 LazyColumn 的项目时应用程序崩溃

为 Gradle 子项目配置 Kotlin 扩展

从字符串列表构建字符串

如何在 Android 的 Fragment 中使用 setUserVisibleHint

@InlineOnly 注释是什么意思?

Kotlin 和 Java 字符串拆分与正则表达式的区别

带有迭代器函数的 Kotlin 无限序列

Kotlin 具体化的泛型不会按计划保持类型

如果 Maybe 完成,则从其他来源将 Maybe 转换为 Single

编译错误:-Xcoroutines has no effect: coroutines are enabled anyway in 1.3 and beyond

Android Kotlin 创建类实现 Parcelable 在 writeToParcel 方法的 override中给出错误

Kotlin:使用自定义设置器时没有lateinit的解决方法?

可以在函数参数中使用解构吗?

如何在kotlin用mockito模仿lambda

Android Compose 生产准备好了吗?