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

Ability to show more information from the JSON data when tests are passing

XMLWordPrintable

      We are using pherkin to run our cuke tests, and generate a JSON result.
      pherkin uses Test::More and as a result produces TAP type data within the JSON file.

      Below is a Step within the output from pherkin JSON:

      {
      keyword: "Given",
      name: "I have an SES object for page "2" and single "ArrayDevice" element(s)",
      result: {
      error_message: "ok 1 - Starting to execute step: I have an SES object for page "2" and single "ArrayDevice" element(s) # Creating an SES object, pagecode is 2, and a list of single ArrayDevice element(s) ok 2 - Found SES target ok 3 - The object isa Xyratex::SES ok 4 - SES page 2 read and decoded # There are 14 present ok 5 - We have one or more (1) elements of type ArrayDevice 1..5 ",
      status: "passed",
      duration: 5397072792
      },
      line: 12
      }
      

      As can be seen although the status is passed, the TAP within the test is embedded within the result error_message. here we have 5 tests, ok 1 to ok 5.

      This data is only shown if the tests fail, but we would like to have an option to display all result data, including anything in the error_message.

            teilo James Nord
            mpehjohn John Wilkinson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: