IntelliJ IDEA使用JUnit单元测试如何只运行其中一个@Test方法


在某一个方法上点击右键然后run就会只执行单个测试方法。


### 在类或者空白处点击右键则会执行所有的@Test方法。
public class JUnitTest extends BaseTest {
    @Test
    public void test1(){}
    
    @Test
    public void test2(){}
}

IntelliJ IDEA使用JUnit单元测试如何只运行其中一个@Test方法
IntelliJ IDEA使用JUnit单元测试如何只运行其中一个@Test方法
IntelliJ IDEA使用JUnit单元测试如何只运行其中一个@Test方法

相关文章:

  • 2021-05-13
  • 2021-11-17
  • 2021-12-06
  • 2021-04-15
  • 2022-01-14
  • 2021-05-31
  • 2021-05-25
  • 2021-04-09
猜你喜欢
  • 2021-08-01
  • 2021-05-16
  • 2021-11-26
  • 2021-08-07
  • 2021-07-06
  • 2021-08-27
  • 2021-04-30
相关资源
相似解决方案