For the job where the
TEST_COUNTS macro is showing as blank, navigate to the configuration of the job and perform the following:
Add a new "Post-Build Action"
Select an action of type "Publish JUnit test result report"
Ensure that you have filled out the "Test report XMLs" field correctly.
These steps are necessary because the macro relies on having the test results available to calculate it.