JiraConnect sync should use junit test reports for test-info discovery
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Release notes
The tests statistics synced with JIRA now carries statistics from junit test reports found in the pipeline, instead of the overall job status counts.
Problem to solve
The Jira Developer Panel displays test information upon integration and successful sync of builds from related branches and merge requests.
However, this information is based on the count of successful or failed jobs rather than the unit test case report produced by this feature: https://docs.gitlab.com/ee/ci/unit_test_reports.html
Proposal
Alter test_info in https://gitlab.com/gitlab-org/gitlab/blob/v14.0.0-ee/lib/atlassian/jira_connect/serializers/build_entity.rb#L67-79 to use test reports information to calculate the numbers when available, instead of using the job counts.