Class JUnitScenarioReporter

java.lang.Object
org.jbehave.core.reporters.NullStoryReporter
com.github.valfirst.jbehave.junit.monitoring.JUnitScenarioReporter
All Implemented Interfaces:
org.jbehave.core.reporters.StoryReporter

public class JUnitScenarioReporter extends org.jbehave.core.reporters.NullStoryReporter
  • Constructor Summary

    Constructors
    Constructor
    Description
    JUnitScenarioReporter​(org.junit.runner.notification.RunNotifier notifier, int totalTests, org.junit.runner.Description rootDescription, org.jbehave.core.configuration.Keywords keywords)
     
    JUnitScenarioReporter​(org.junit.runner.notification.RunNotifier notifier, int totalTests, org.junit.runner.Description rootDescription, org.jbehave.core.configuration.Keywords keywords, boolean notifyFinished)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    afterStory​(boolean isGivenStory)
     
    void
    beforeScenario​(org.jbehave.core.model.Scenario scenario)
     
    void
    beforeStep​(String title)
     
    void
    beforeStory​(org.jbehave.core.model.Story story, boolean isGivenStory)
     
    void
    example​(Map<String,​String> tableRow, int exampleIndex)
     
    void
    failed​(String step, Throwable e)
     
    void
    ignorable​(String step)
     
    void
     
    void
    pending​(String step)
     
    void
    scenarioNotAllowed​(org.jbehave.core.model.Scenario scenario, String filter)
    Notify the IDE that the current step and scenario is not being executed.
    void
    successful​(String step)
     
    void
    usePendingStepStrategy​(org.jbehave.core.failures.PendingStepStrategy pendingStepStrategy)
     

    Methods inherited from class org.jbehave.core.reporters.NullStoryReporter

    afterExamples, afterGivenStories, afterScenarioSteps, afterStorySteps, beforeExamples, beforeGivenStories, beforeScenario, beforeScenarioSteps, beforeStorySteps, comment, dryRun, example, failedOutcomes, givenStories, givenStories, lifecyle, narrative, pendingMethods, restarted, restartedStory, scenarioMeta, storyCancelled, storyNotAllowed

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JUnitScenarioReporter

      public JUnitScenarioReporter(org.junit.runner.notification.RunNotifier notifier, int totalTests, org.junit.runner.Description rootDescription, org.jbehave.core.configuration.Keywords keywords, boolean notifyFinished)
    • JUnitScenarioReporter

      public JUnitScenarioReporter(org.junit.runner.notification.RunNotifier notifier, int totalTests, org.junit.runner.Description rootDescription, org.jbehave.core.configuration.Keywords keywords)
  • Method Details

    • beforeStory

      public void beforeStory(org.jbehave.core.model.Story story, boolean isGivenStory)
      Specified by:
      beforeStory in interface org.jbehave.core.reporters.StoryReporter
      Overrides:
      beforeStory in class org.jbehave.core.reporters.NullStoryReporter
    • afterStory

      public void afterStory(boolean isGivenStory)
      Specified by:
      afterStory in interface org.jbehave.core.reporters.StoryReporter
      Overrides:
      afterStory in class org.jbehave.core.reporters.NullStoryReporter
    • beforeScenario

      public void beforeScenario(org.jbehave.core.model.Scenario scenario)
      Specified by:
      beforeScenario in interface org.jbehave.core.reporters.StoryReporter
      Overrides:
      beforeScenario in class org.jbehave.core.reporters.NullStoryReporter
    • afterScenario

      public void afterScenario()
      Specified by:
      afterScenario in interface org.jbehave.core.reporters.StoryReporter
      Overrides:
      afterScenario in class org.jbehave.core.reporters.NullStoryReporter
    • example

      public void example(Map<String,​String> tableRow, int exampleIndex)
      Specified by:
      example in interface org.jbehave.core.reporters.StoryReporter
      Overrides:
      example in class org.jbehave.core.reporters.NullStoryReporter
    • beforeStep

      public void beforeStep(String title)
      Specified by:
      beforeStep in interface org.jbehave.core.reporters.StoryReporter
      Overrides:
      beforeStep in class org.jbehave.core.reporters.NullStoryReporter
    • failed

      public void failed(String step, Throwable e)
      Specified by:
      failed in interface org.jbehave.core.reporters.StoryReporter
      Overrides:
      failed in class org.jbehave.core.reporters.NullStoryReporter
    • successful

      public void successful(String step)
      Specified by:
      successful in interface org.jbehave.core.reporters.StoryReporter
      Overrides:
      successful in class org.jbehave.core.reporters.NullStoryReporter
    • pending

      public void pending(String step)
      Specified by:
      pending in interface org.jbehave.core.reporters.StoryReporter
      Overrides:
      pending in class org.jbehave.core.reporters.NullStoryReporter
    • ignorable

      public void ignorable(String step)
      Specified by:
      ignorable in interface org.jbehave.core.reporters.StoryReporter
      Overrides:
      ignorable in class org.jbehave.core.reporters.NullStoryReporter
    • notPerformed

      public void notPerformed(String step)
      Specified by:
      notPerformed in interface org.jbehave.core.reporters.StoryReporter
      Overrides:
      notPerformed in class org.jbehave.core.reporters.NullStoryReporter
    • scenarioNotAllowed

      public void scenarioNotAllowed(org.jbehave.core.model.Scenario scenario, String filter)
      Notify the IDE that the current step and scenario is not being executed. Reason is a JBehave meta tag is filtering out this scenario.
      Specified by:
      scenarioNotAllowed in interface org.jbehave.core.reporters.StoryReporter
      Overrides:
      scenarioNotAllowed in class org.jbehave.core.reporters.NullStoryReporter
      Parameters:
      scenario - Scenario
      filter - Filter
    • usePendingStepStrategy

      public void usePendingStepStrategy(org.jbehave.core.failures.PendingStepStrategy pendingStepStrategy)