JBehave
  1. JBehave
  2. JBEHAVE-296

Step failure exception being thrown in PrintStream reporters prevents the delegating reporter from completing

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.8, 3.0
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      PrintStream reporters should not throw any exception upon step failures, since they prevent the delegating reporter from completing the list of all delegate reporters. This may manifest itself as the stats not be being written.

      In general, reporters should not throw any exceptions, as the the failures are handled by the ErrorStrategy.

      If one does want reporters to throw exceptions on failure, one may decorate the reporter with the StepFailureScenarioReporterDecorator.

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mauro Talevi made changes -
        Summary Failure exception being thrown in PrintStream reporters prevents the delegating reporter from completing Step failure exception being thrown in PrintStream reporters prevents the delegating reporter from completing
        Description PrintStream reporters should not throw any exceptions in case of failures, since they prevent the delegating reporter from completing the list of all delegate reporters. This may manifest itself as the stats not be being written.

        In general, reporters should now throw exceptions, as the the failures are handled by the ErrorStrategy.

        If one does wish this behaviour, one may decorate the reporter with the StepFailureScenarioReporterDecorator.
        PrintStream reporters should not throw any exception upon step failures, since they prevent the delegating reporter from completing the list of all delegate reporters. This may manifest itself as the stats not be being written.

        In general, reporters should not throw any exceptions, as the the failures are handled by the ErrorStrategy.

        If one does want reporters to throw exceptions on failure, one may decorate the reporter with the StepFailureScenarioReporterDecorator.

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Mauro Talevi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: