3

I am using email-ext plugin within Jenkins to display passed failed, and the email has a nice blue for passed methods and red for failed. What it is not including is the Ignored tests within a class. Shouldn't the annotations for Junit's @Ignore display as skipped in the junit results via email-ext?

I am using the html_gmail template like so: ${JELLY_SCRIPT,template="html_gmail"}

and I am using the following tokens in the extendable email notificatin config:

Total Amount of Tests: ${TEST_COUNTS, var}

Total = $TEST_COUNTS Failed = ${TEST_COUNTS,var="fail"}

Total = $TEST_COUNTS Passed = ${TEST_COUNTS,var="pass"}

Is there an: Ignore = ${TEST_COUNTS,var=skipped") ????

Laser Hawk
  • 1,988
  • 2
  • 23
  • 29
  • The doc says: `${TEST_COUNTS, var}` displays the number of tests. `var` Defaults to "total". `total` the number of all tests. `pass` the number of passed tests. `fail` the number of failed tests. `skip` the number of skipped tests. – Stéphane Bruckert May 06 '13 at 13:01

1 Answers1

7

Yes -

${TEST_COUNTS,var="skip"}

Take a look at the source code of TestCountsContent.java

Xavier Nodet
  • 5,033
  • 2
  • 37
  • 48
Josh Unger
  • 6,717
  • 6
  • 33
  • 55