Email Extension Plugin TEST_COUNTS macro returns blank

Issue

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

Environment

Resolution

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.

postbuild-actions-publish-junit.png

These steps are necessary because the macro relies on having the test results available to calculate it.

Tested product/plugin versions

Have more questions?

0 Comments

Please sign in to leave a comment.