testing - 使用 Intellij 运行测试时为 "Test events were not received"

标签 testing intellij-idea kotlin junit

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

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

你能帮帮我吗?

最佳答案

对我来说,发生了同样的问题,以下更改对我有用。 我使用的 IntelliJ 版本:2019.2.2
在 IntelliJ IDE 中,转到

文件 -> 设置 -> 构建、执行、部署 -> 构建工具 -> Gradle

Run test using: 下拉菜单中选择的选项是:Gradle(default) 将其更改为 IntelliJ IDEA

关于testing - 使用 Intellij 运行测试时为 "Test events were not received",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57795263/

相关文章:

android - 为什么我们失去了 ViewHolder 上的 View 缓存功能?

types - 如果 Kotlin 中的类型参数受另一个类型参数的限制,为什么它不能有任何其他范围?

testing - 在 Jest 中,通过分片并行化和工作线程并行化有什么区别?

ruby-on-rails - 设计应用程序的 Rails 测试错误

Python命令行: ignore indentation

javascript - 如果正确应用了内联样式,如何使用 Jest/Enzyme 进行测试

intellij-idea - IntelliJ 快捷方式显示类中可搜索的方法的弹出窗口

java - 在idea中调试生成的GWT类

java - intellij 正在将 src 复制到目标

spring-boot - JPA @OneToMany 不保存父 ID