Details
-
Bug
-
Resolution: Fixed
-
Major
-
12.3
-
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
- blocks
-
XWIKI-26232 The console validation of functional tests fails on the environment debugging information of failing tests
-
- Closed
-
- relates to
-
XWIKI-19586 Add support for testing on Oracle 23
-
- Closed
-