undefined badge counter if no test reports
Summary
If JUnit
feature is enabled, and a pipeline does not have any test_reports
we should not render anything in our test tab badge counter
Steps to reproduce
- run a pipeline that gathers junit data on gitlab 12.7 or newser
Example Project
(If possible, please create an example project here on GitLab.com that exhibits the problematic behavior, and link to it here in the bug report)
(If you are using an older version of GitLab, this will also determine whether the bug is fixed in a more recent version)
What is the current bug behavior?
What is the expected correct behavior?
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
cc @mfluharty
/label ~bug
Edited by James Heimbuck