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

org.jbehave.mojo.RunStoriesAsPaths Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
package org.jbehave.mojo;

import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.jbehave.core.embedder.Embedder;

/**
 * Mojo to run stories as paths
 * 
 * @goal run-stories-as-paths
 */
public class RunStoriesAsPaths extends AbstractEmbedderMojo {

    public void execute() throws MojoExecutionException, MojoFailureException {
        Embedder embedder = newEmbedder();
        getLog().info("Running stories as paths using embedder " + embedder);
        try {
            embedder.runStoriesAsPaths(storyPaths());
        } catch (RuntimeException e) {
            throw new MojoFailureException("Failed to run stories as paths", e);
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy