Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-3954

The environment debugging information of failing tests is also displayed for skipped tests

    XMLWordPrintable

Details

    • Unknown

    Description

      FailingTestDebuggingTestExecutionListener displays environment debugging information (processes, open ports, Docker containers and events, etc.) in the console when a test fails in the CI. But it checks for the presence of a throwable in the test execution result, which is also there for a test aborted because of a failed assumption (assumeTrue()), i.e. a skipped test.

      The debugging information is thus displayed for skipped tests too, where it's useless, and it ends up in the console validated by the functional tests of XWiki Platform (see the related XWIKI issue), failing them when it contains error-looking content. For example the Docker events of an Oracle setup containing WHENEVER SQLERROR EXIT FAILURE failed WikiManagerRestIT, which skips a test on Oracle: https://ci.xwiki.org/job/XWiki%20Environment%20Tests/job/xwiki-platform/job/stable-18.10.x/17/testReport/

      The start and end markers of the debugging information should also be public so that other console validators can skip it, like CaptureConsoleExtension does.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: