我想使用 Junit3 轻松执行我的多个测试用例类中选定的几个测试用例

发布于 2024-11-19 05:02:21 字数 112 浏览 10 评论 0原文

由于我的 1-2 个测试用例因一堆测试用例而失败,并且还发现很难再次执行这两个测试套件的整个测试套件,因此是否有任何方法无需向其他测试用例添加注释或将这两个方法复制到不同的套件中。

提前感谢大家

As my 1-2 test cases are failing from bunch of test cases and also finding difficult to execute whole test suite again for these two, is there any method without adding comment to the others or copying these two methods in different suite.

Thanks to all in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

初见终念 2024-11-26 05:02:21

对于您不想运行的测试,请添加 @Ignore 注释。例如:

@Ignore
@Test
public void testLala() {
  ...
}

For the tests you don't want to run, add the @Ignore annotation. For example:

@Ignore
@Test
public void testLala() {
  ...
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文