An error occurred while fetching the assigned iteration of the selected issue.
Formatting issues in junit test report system output
Summary
GitLab does not preserve original intended output formatting for failed tests:
- Test failure output from junit report gets truncated to 80 lines in the system output window
- Multiple failures from the same testcase are merged into a JSON array with formatting issues
There are no apparent options to change how GitLab renders junit tests outputs. For tests that produce stack traces the output window is always too small to show them correctly.
Steps to reproduce
- Prepare a pipeline with a junit test repor that contains large per-formatted test failure message
- Run a Pipeline with GitLab
- Navigate to the Test results windows and press 'View Details' for the failed tests
Example Project
Issue is demonstrated in this example project:
What is the current bug behavior?
Test output has poor readability. See screenshots.
What is the expected correct behavior?
- Preserve original intended test output
- Automatically resize system output window to fit entire test output or add some configuration to expand its original 80 character limit.
- Preserve original formatting for tests with multiple test failures per test case