Skip to content

junit report duration times all 00:00:00

Summary

When using a junit report in a pipeline all the durations display as 00:00:00.

Steps to reproduce

Generate a junit report and publish as an artifact

Example Project

Try to use this junit report in a gitlab yml pipeline junit.xml

unit test:
  artifacts:
    reports:
      junit:
        - "junit.xml"

What is the current bug behavior?

Displays all times in the test report view as 0

What is the expected correct behavior? / Proposal for fix

Show the time in seconds or milliseconds if < 1 second with 2 decimal shown.

Screenshot of the proposal

new_time_display

Relevant logs and/or screenshots from the bug

What is displayed before the fix

duration0

Output of checks

This bug happens on GitLab.com

Edited by James Heimbuck