我们可以像TestNG一样在Junit中使用软断言吗?

问题描述 投票:0回答:1

我们可以在Junit中像TestNG一样使用软断言:

如果断言条件失败,我不想使测试用例失败

解决此用例的任何方法

cucumber-junit
1个回答
0
投票

是的,我们可以做:

softAssertions = new SoftAssertions();
© www.soinside.com 2019 - 2024. All rights reserved.