Search in sources :

Example 1 with ExtendedEmbedder

use of net.serenitybdd.jbehave.embedders.ExtendedEmbedder in project serenity-jbehave by serenity-bdd.

the class SerenityReportingRunner method createPerformableTree.

private PerformableTree createPerformableTree(List<String> storyPaths) {
    ExtendedEmbedder configuredEmbedder = this.getConfiguredEmbedder();
    configuredEmbedder.useMetaFilters(getMetaFilters());
    BatchFailures failures = new BatchFailures(configuredEmbedder.embedderControls().verboseFailures());
    PerformableTree performableTree = new PerformableTree();
    RunContext context = performableTree.newRunContext(getConfiguration(), configuredEmbedder.stepsFactory(), configuredEmbedder.embedderMonitor(), configuredEmbedder.metaFilter(), failures);
    performableTree.addStories(context, storiesOf(performableTree, storyPaths));
    return performableTree;
}
Also used : BatchFailures(org.jbehave.core.failures.BatchFailures) PerformableTree(org.jbehave.core.embedder.PerformableTree) RunContext(org.jbehave.core.embedder.PerformableTree.RunContext) ExtendedEmbedder(net.serenitybdd.jbehave.embedders.ExtendedEmbedder)

Aggregations

ExtendedEmbedder (net.serenitybdd.jbehave.embedders.ExtendedEmbedder)1 PerformableTree (org.jbehave.core.embedder.PerformableTree)1 RunContext (org.jbehave.core.embedder.PerformableTree.RunContext)1 BatchFailures (org.jbehave.core.failures.BatchFailures)1