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

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

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Critical Critical
    • testng-plugin
    • None

      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

          [JENKINS-18185] TestNG plugin should be able to capture and display stdout/stderr of tests

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

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

          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!

          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!

          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.

          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.

          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

          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

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

              Created:
              Updated: