如何一起运行Junit测试?

时间:2017-07-17 05:29:04

标签: eclipse intellij-idea

在Eclipse中,我可以单击test /目录并右键单击"作为junit test"运行,所有测试将一起运行。

在Intellij中,似乎我必须单击每个单独的测试类并按类运行测试。这是真的?我是Intellij的新手

1 个答案:

答案 0 :(得分:0)

转到Run - >编辑配置 - > Junit - >给你的包裹名称 - >单击“确定”按钮。

以下是截图:

enter image description here

enter image description here