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? |
One answer
jbognar wrote:
If the JUnit publisher finds that one or more tests failed, will it 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
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.