我在Maven工作中运行了一组黄瓜测试。如果测试失败,我将如何执行特定操作?
RunnerTest.Java
import org.junit.runner.RunWith;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@Cucumber.Options(format = {"html:target/test-report", "json:target/test-report.json", "junit:target/test-report.xml"},
features = "src/test/resource"
)
public class RunnerTest {
}