Intellij不在控制台中显示测试结果 [英] Intellij not shows test results in console

查看:972
本文介绍了Intellij不在控制台中显示测试结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在测试控制台中设置输出?当我运行测试默认情况下,输出被测试的摘要取代,并且System.outs丢失。

Howto set the output in test console? When i run test by default the output is replaced by the summary of the test, and System.outs are lost.

推荐答案

不同的测试失败和测试工作。

It's different for tests that failed and tests that works.

如果没有测试失败,您必须点击所有测试的顶层,您将看到输出。

If no test fails you'll have to click the top level of all tests that ran you'll see the output.

如果你点击任何特定的工作测试,他们将是空的,即使他们打印的东西。
如果你点击任何特定的失败测试,​​他们将显示所有以前测试的输出,包括失败的测试。

If you click on any specific working test they'll be empty, even if they printed something. If you click on any specific failing test they'll show the output from all previous tests, including the one that failed.

这篇关于Intellij不在控制台中显示测试结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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