All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.masterthought.cucumber.json.support.Status Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 5.8.4
Show newest version
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