net.masterthought.cucumber.json.support.Status Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-reporting Show documentation
Show all versions of cucumber-reporting Show documentation
Provides pretty html reports for Cucumber (Behaviour-Driven Development). It works by generating html from the
cucumber json report formatter. So can be used anywhere a json report is generated. Current use is in the
cucumber jenkins plugin and a maven mojo to generate the same report from mvn command line when running locally.
package net.masterthought.cucumber.json.support;
/**
* Defines all possible statuses provided by cucumber-jvm.
*
* @author Damian Szczepanik (damianszczepanik@github)
*/
public enum Status {
PASSED,
FAILED,
SKIPPED,
PENDING,
UNDEFINED,
MISSING;
/** Returns name of the status as lower case characters. */
public String getRawName() {
return name().toLowerCase();
}
/** Returns name of the status changing first letter to upper case character. */
public String getLabel() {
return name().substring(0, 1).toUpperCase() + name().substring(1).toLowerCase();
}
public static Status toStatus(String status) {
return valueOf(status.toUpperCase());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy