更新时间:2023-02-16 20:17:12
在 junit 任务上,使用 failureproperty 属性.然后使用 unless 属性调用 fail 任务.
junit
failureproperty
unless
fail
On the junit task, use the failureproperty attribute. And then call the fail task with an unless attribute.
进一步阅读:
JUnit测试用例与eclipse通过,但是与maven构建失败
当硒测试失败时,使Jenkins构建失败
当 Selenium 测试失败时,使 Jenkins 构建失败
在.net核心控制台应用程序中使用.net类库时,项目构建失败
在 .net core 控制台应用程序中使用 .net 类库时,项目构建失败
由于 AppDomain 在项目之间进行交叉时,通过 Resharper 8 运行 NUnit 测试失败
从 teamcity 运行测试时设置方法失败
错误 - 通过SSL连接到Azure Blob存储容器时,PKIX路径构建失败
Ant 是否可以在构建结束时列出失败的测试?