Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

JUnit publishing and build results.

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?

0 votes



One answer

Permanent link
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."

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Dec 01 '09, 10:25 a.m.

Question was seen: 5,292 times

Last updated: Dec 01 '09, 10:25 a.m.

Confirmation Cancel Confirm