第一次失败后如何使junit测试停止 [英] How to make junit testing to stop after first failing test

查看:156
本文介绍了第一次失败后如何使junit测试停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让运行的junit测试在测试失败后停止?

Is there a way to make running junit test to stop after a test fails?

推荐答案

是的……此功能(或缺少此功能)已内置到各种TestRunner中(控制台,AWT,Swing,Ant,Maven或内置的一种)进入Eclipse等).您必须在要使用的特定平台的文档中寻找此控件.

Yes ... this ability (or the lack of it) is built into the various TestRunners (Console, AWT, Swing, Ant, Maven or the one built into Eclipse, etc). You'll have to look for this control in the documentation for the specific platform you're using.

这篇关于第一次失败后如何使junit测试停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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