Email Extension Plugin TEST_COUNTS macro returns blank

Article ID:360026807171
1 minute readKnowledge base


Using the ${TEST_COUNTS} macro in plugin:email-ext results in nothing being printed out.


For the job where the TEST_COUNTS macro is showing as blank, navigate to the configuration of the job and perform the following:

  1. Add a new "Post-Build Action"

  2. Select an action of type "Publish JUnit test result report"

  3. 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.

Tested product/plugin versions