Package org.jbehave.core.reporters

Examples of org.jbehave.core.reporters.StoryReporterBuilder


  public PreferredConfiguration(String storyUrl) {
    URL codeLocation = CodeLocations.codeLocationFromURL(storyUrl);
    Properties viewResources = new Properties();
    StoryPathResolver storyPathResolver = new UnderscoredCamelCaseResolver(
        ".story");
    StoryReporterBuilder srb = new StoryReporterBuilder()
        .withDefaultFormats()
        .withViewResources(viewResources)
                .withRelativeDirectory(".." + File.separator + Config.getLatestReportsDir())
        .withFormats(Format.XML, Format.CONSOLE, Format.HTML, Format.IDE_CONSOLE, Format.TXT)
        .withFailureTrace(Config.displayStackTrace());
View Full Code Here


        parameterConverters.addConverters(new DateConverter(new SimpleDateFormat("yyyy-MM-dd")),
                new ExamplesTableConverter(examplesTableFactory));
        return new MostUsefulConfiguration()
            .useStoryLoader(new LoadFromClasspath(embeddableClass))
            .useStoryParser(new RegexStoryParser(examplesTableFactory))
            .useStoryReporterBuilder(new StoryReporterBuilder()
                .withCodeLocation(CodeLocations.codeLocationFromClass(embeddableClass))
                .withDefaultFormats()
                .withFormats(CONSOLE, TXT, HTML, XML))
            .useParameterConverters(parameterConverters);
    }
View Full Code Here

    @Override
    public Configuration configuration() {
        return new MostUsefulConfiguration()
                .useStoryLoader(new LoadFromClasspath(this.getClass()))
                .useStoryReporterBuilder(new StoryReporterBuilder()
                        .withFormats(Format.TXT)
                        .withRelativeDirectory("../build/jbehave/"));
    }
View Full Code Here

                // where to find the stories
                .useStoryLoader(new LoadFromClasspath(this.getClass()))
                        // Fails if Steps are not implemented
                .usePendingStepStrategy(new FailingUponPendingStep())
                        // CONSOLE and HTML reporting
                .useStoryReporterBuilder(new StoryReporterBuilder().withDefaultFormats()
                        .withFormats(Format.CONSOLE, Format.HTML));
    }
View Full Code Here

        .useFailureStrategy(new SilentlyAbsorbingFailure())
        .useStoryLoader(new LoadFromClasspath(embeddableClass))
        .useStoryParser(new RegexStoryParser(examplesTableFactory))
        .usePendingStepStrategy(new FailingUponPendingStep())
        .useStoryReporterBuilder(
            new StoryReporterBuilder()
                .withCodeLocation(codeLocationFromClass(embeddableClass))
                .withDefaultFormats().withFailureTrace(false)
                .withFormats(CONSOLE,XML,HTML,TXT))
        .useParameterConverters(parameterConverters)
        .useStoryControls(new StoryControls().doSkipBeforeAndAfterScenarioStepsIfGivenStory(true).
View Full Code Here

        .createSuiteDescription(configurableEmbedder.getClass());
    rootDescription.getChildren().addAll(storyDescriptions);
  }

  private void addToStoryReporterFormats(JUnitScenarioReporter junitReporter) {
    StoryReporterBuilder storyReporterBuilder = configuration
        .storyReporterBuilder();
    StoryReporterBuilder.ProvidedFormat junitReportFormat = new StoryReporterBuilder.ProvidedFormat(
        junitReporter);
    storyReporterBuilder.withFormats(junitReportFormat);
  }
View Full Code Here

        MostUsefulConfiguration configuration = new MostUsefulConfiguration();

        // set custom Jira HTML output format
        configuration.useStoryReporterBuilder(
                new StoryReporterBuilder() {
                    public StoryReporter reporterFor(String storyPath, org.jbehave.core.reporters.Format format) {
                        if (format.equals(org.jbehave.core.reporters.Format.HTML)) {
//                            return new JiraStoryReporter(jiraUrl, jiraProject, "admin", "admin", environment);
//                            return new GroovyStoryReporter(jiraUrl, jiraProject, "admin", "admin", environment);
                            Keywords keywords = keywords();
View Full Code Here

TOP

Related Classes of org.jbehave.core.reporters.StoryReporterBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.