logo
  • 教程列表
  • SO官方文档
  • 忽略 Junit 中的测试用例
    • 忽略 Junit 中的测试用例
  1. StackOverflow 文档
  2. junit 教程
  3. 忽略 Junit 中的测试用例
  4. 忽略 Junit 中的测试用例

忽略 Junit 中的测试用例

Created: November-22, 2018

  1. 转到要忽略的测试方法
  2. 在 @Test 注释之前,输入 @Ignore
  3. 可选:你可以添加说明为什么忽略此测试方法,例如:@Ignore ("ignoring this test case for now")

一个示例方法是:

@Ignore ("not going to test this method now")
@Test
public void test() {
     assertfalse(true);
}
  • 忽略 Junit 中的测试用例

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明