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

TestNG plugin should be able to capture and display stdout/stderr of tests

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: testng-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      The build in test report displays the standard output and standard error of tests in the test details (BTW: this does even seem to work, when redirecting stdout to a file as you can do in the maven.surefire-plugin)

      The TestNG plugin should be able to do the same

        Attachments

          Activity

          Hide
          deadmoto Dmitry Berezhnoy added a comment -

          It is impossible to implement this feature because TestNG plugin consumes XML output produced by TestNG AFTER! test phase.

          Show
          deadmoto Dmitry Berezhnoy added a comment - It is impossible to implement this feature because TestNG plugin consumes XML output produced by TestNG AFTER! test phase.
          Hide
          kutzi kutzi added a comment -

          We've got TestNG tests running via surefire and let Jenkins report the test results, both via the built-in test parser and by the TestNG plugin.
          The built-in parser captures the standard output. The TestNG plugin doesn't.

          So it must be possible to capture stdout!

          Show
          kutzi kutzi added a comment - We've got TestNG tests running via surefire and let Jenkins report the test results, both via the built-in test parser and by the TestNG plugin. The built-in parser captures the standard output. The TestNG plugin doesn't. So it must be possible to capture stdout!
          Hide
          deadmoto Dmitry Berezhnoy added a comment -

          Oh, now it seems more clear to me.
          Check TestNG XML report if there is <reporter-output> tag.
          If this tag contains your STDOUT then your feature request may be satisfied.

          Show
          deadmoto Dmitry Berezhnoy added a comment - Oh, now it seems more clear to me. Check TestNG XML report if there is <reporter-output> tag. If this tag contains your STDOUT then your feature request may be satisfied.
          Hide
          dalvizu Dan Alvizu added a comment -

          Rerporter.log() is used to log messages to show up in reports

          http://testng.org/javadoc/org/testng/Reporter.html

          Show
          dalvizu Dan Alvizu added a comment - Rerporter.log() is used to log messages to show up in reports http://testng.org/javadoc/org/testng/Reporter.html

            People

            • Assignee:
              Unassigned
              Reporter:
              kutzi kutzi
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: