Hi,
I am evaluating bamboo, and I want to know how I can see a failure of a task in bamboo? Actually how to I indicate from the test to Bamboo that a failure has occurred? Most of the tests I have are script based and can be modified to indicate a failure. Currently they indicate a failure by different exit codes. I found this page (https://developer.atlassian.com/display/BAMBOODEV/Test+Collection+and+Reporting). which seems to indicate I need to make some sort of custom handler. But I wanted to make sure that was the case, or if there is a standard results handler that I could just modify my test scripts to use?
Failures occur on exit > 0. If your test returns an exit value > 0 it will fail the build. The page you linked to is in regards to actually writing a Bamboo task. Bamboo tasks are like the source code checkout task, or the scp task or the command or script task. If you are using an existing Bamboo task like one of the aforementioned or JUnit or NUnit then you don't need to do anything special for a failed test to register as a failure. I know if it returns exit > 0 it will turn red as a failure, It may also Fail if it sees "ERROR" or "FAIL" though those may also be returning > 0 and therefore actually be registering based on the exit code.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.