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

if the background step that fails is not the last background step then the scenario is marked as skipped not failed.

    XMLWordPrintable

Details

    Description

      If you have a background with multiple steps - and a step fails that is not the last step the at the top level overview in the job page the failure is not represented correctly - even thogh at a feature level the test is appropriately marked.

      Attachments

        Activity

          teilo James Nord created issue -

          Code changed in jenkins
          User: James Nord
          Path:
          src/main/java/org/jenkinsci/plugins/cucumber/jsontestsupport/BackgroundResult.java
          src/test/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONParserTest.java
          src/test/resources/org/jenkinsci/plugins/cucumber/jsontestsupport/ScenarioResultTest/backgroundFailure.json
          http://jenkins-ci.org/commit/cucumber-testresult-plugin/64dfc376835f8bf0fe2ec0bfd7ebe6a9f2df95ac
          Log:
          [FIXED JENKINS-25021] If the background failed then the test may not be correctly marked as failed in some cicumstances.

          Don't reset the failed state flag for skipped tests.

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: James Nord Path: src/main/java/org/jenkinsci/plugins/cucumber/jsontestsupport/BackgroundResult.java src/test/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONParserTest.java src/test/resources/org/jenkinsci/plugins/cucumber/jsontestsupport/ScenarioResultTest/backgroundFailure.json http://jenkins-ci.org/commit/cucumber-testresult-plugin/64dfc376835f8bf0fe2ec0bfd7ebe6a9f2df95ac Log: [FIXED JENKINS-25021] If the background failed then the test may not be correctly marked as failed in some cicumstances. Don't reset the failed state flag for skipped tests.
          scm_issue_link SCM/JIRA link daemon made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 158919 ] JNJira + In-Review [ 195928 ]
          teilo James Nord made changes -
          Assignee James Nord [ teilo ]

          People

            Unassigned Unassigned
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: