Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21545

Skipped steps don't mark test as failure

    XMLWordPrintable

Details

    Description

      A scenario is marked as passed even if there are steps that have been marked as skipped.
      In particulary if a StepDef annotated as @Before throws an assertion error this produces a JSON report where all the steps are skipped, however this is treated as a successful test by the reporting.

      Attached:
      Sample json output file.
      Sample Stack trace of a @Before stepDef throwing an assertion error.

      Attachments

        Activity

          mole125 The Mole created issue -
          teilo James Nord added a comment -

          This is a bug in an old version of cucumber-jvm.

          with cucumber-jvm 1.1.5 I see before/after hooks recorded correctly in the json output

          teilo James Nord added a comment - This is a bug in an old version of cucumber-jvm. with cucumber-jvm 1.1.5 I see before/after hooks recorded correctly in the json output
          teilo James Nord made changes -
          Field Original Value New Value
          Assignee teilo [ teilo ]
          teilo James Nord added a comment -

          bug in old versions of cucumber-jvm - please updade the version used to run your tests.

          teilo James Nord added a comment - bug in old versions of cucumber-jvm - please updade the version used to run your tests.
          teilo James Nord made changes -
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 153542 ] JNJira + In-Review [ 194580 ]
          teilo James Nord made changes -
          Assignee James Nord [ teilo ]

          People

            Unassigned Unassigned
            mole125 The Mole
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: