![JAR search and dependency download from the Maven repository](/logo.png)
net.masterthought.cucumber.json.Hook 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;
import net.masterthought.cucumber.json.support.ResultsWithMatch;
import net.masterthought.cucumber.json.support.Status;
public class Hook implements ResultsWithMatch {
// Start: attributes from JSON file report
private final Result result = null;
private final Match match = null;
// End: attributes from JSON file report
private Status status;
@Override
public Result getResult() {
return result;
}
@Override
public Status getStatus() {
return status;
}
@Override
public Match getMatch() {
return match;
}
public void setMedaData() {
calculateStatus();
}
private void calculateStatus() {
if (result == null) {
status = Status.MISSING;
} else {
status = Status.toStatus(result.getStatus());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy