org.jbehave.mojo.ReportStepdocs Maven / Gradle / Ivy
package org.jbehave.mojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.jbehave.core.embedder.Embedder;
/**
* Mojo to report stepdocs given a fully configured {@link Embedder} instance.
*
* @goal report-stepdocs
*/
public class ReportStepdocs extends AbstractEmbedderMojo {
public void execute() throws MojoExecutionException, MojoFailureException {
Embedder embedder = newEmbedder();
getLog().info("Reporting stepdocs using embedder " + embedder);
try {
embedder.reportStepdocs();
} catch (RuntimeException e) {
throw new MojoFailureException("Failed to report stepdocs", e);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy