It's all about the answers!

Ask a question

JUnit publishing and build results.


James Bognar (14334) | asked Dec 01 '09, 10:25 a.m.
JAZZ DEVELOPER
Quick question (since I can't seem to find the answer).

If the JUnit publisher finds that one or more tests failed, will it mark the build as failed, even if the build ant script itself succeeds?

One answer



permanent link
David Olsen (5237) | answered Dec 01 '09, 7:23 p.m.
JAZZ DEVELOPER
jbognar wrote:
If the JUnit publisher finds that one or more tests failed, will it
mark the build as failed, even if the build ant script itself
succeeds?

Yes.

.... unless you use the mayFailPattern attribute of the junitLogPublisher
task to tell RTC which tests are allowed to fail. Quoting the
documentation of the mayFailPattern attribute:

"A substring of a test suite class name. Any test suite class name that
contains the pattern is allowed to fail without causing the overall
build to fail. The pattern is a simple string, not a regular
expression. If not specified, any test suite failure causes the build
to fail."

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.