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

org.jbehave.ant.RunStoriesWithAnnotatedEmbedderRunner Maven / Gradle / Ivy

package org.jbehave.ant;

import static org.apache.tools.ant.Project.MSG_INFO;

import org.apache.tools.ant.BuildException;
import org.jbehave.core.embedder.Embedder;
import org.jbehave.core.junit.AnnotatedEmbedderRunner;
import org.junit.runner.RunWith;

/**
 * Ant task that runs with {@link AnnotatedEmbedderRunner}, equivalent to
 * execution via JUnit's {@link RunWith}.
 */
public class RunStoriesWithAnnotatedEmbedderRunner extends AbstractEmbedderTask {

    public void execute() throws BuildException {
        Embedder embedder = newEmbedder();
        log("Running stories with annotated embedder runner", MSG_INFO);
        embedder.runStoriesWithAnnotatedEmbedderRunner(classNames());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy