I have cucumber tests with rest-Assured. I tried to use @Skip
tags to exclude some tests. But Jenkins integration test stage in the pipeline shows as unstable(Amber).
Code that enables skip
@RunWith(CucumberWithSerenity.class)
@CucumberOptions(
plugin = {"pretty", "html:target/reports/cucumber-html-report",
"html:target/cucumber-reports/cucumber-pretty",
"json:target/cucumber.json"},
tags = {"not @skip"},
glue = {"myproject.stepdefinitions"},
features = "src/it/resources/features/")
public class MyCucumberTests {
}
Serenity reports correctly shows that particular test as skipped
How to make the test Jenkins pipeline stage green as no tests failed.