You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
We are using Bamboo Built in Maven task to compile java code , run tests and Junit Parser to parse the test results as shown below
Stage 1
Job 1
Maven Task1
Junit Parser1
Stage 2
Job 2
Maven Task2
Junit Parser2
If any test cases fail , Junit task is failing the entire build.
Is there a way we can make Junit parser NOT to fail the build?
Hi @Venkat Pasula ! Welcome to the community!
In fact, I believe this is by design: we should not consider a build as "green" if it has failing tests.
As far as I remember, even without a Junit Parser task, the build would fail because Maven output would have an error code (this is why we always put our Junit Parser tasks as final).
Hope this helps!
I understand the intention behind the Junit parser task to fail for the test failure. But we have a specific need in our deployment pipeline - apart from unit test run, we recently included API contract testing as one of our stage and we want to display the test results in the artifact but do not want to fail the build (as we do not want to stop the deployment because of the failed test runs for now as its a new capability) Note: As this contract testing stage is not in the end, and we have other stage as final - we can't get a way out by making it as final
Is there any alternate options for this ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.