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.
I've a custom test framework/system, as part of my CI process I want to have Bamboo read the results of the tests for a given build.
In my head the process should be like:
I tried to google for an answer but it's difficult to find info on this. I assume I have to generate some kind of file with test result data for Bamboo to consume. Maybe use an existing Bamboo test result parser such Junit, and write my results with that format?
Thanks
The easiest way would be to convert test result data of your system to JUnit format, so JUnit Parser (https://confluence.atlassian.com/bamboo/junit-parser-289277056.html) would parse it.
Another solution would be to write your own test parser. Good starting point for that would be https://developer.atlassian.com/bamboodev/bamboo-tasks-api/test-collection-and-reporting.
On marketplace there is Generic Test Results Parser for Bamboo (https://marketplace.atlassian.com/plugins/com.valens.bamboo-logparser-plugin/server/overview), but honestly I have no idea how good it is.
Thanks, I'm looking for Junit format, although I also will investigate your other proposals just to compare.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where should I place the generated XML files?
ie my build ulr is http://.../browse/GT-RC1603-21 , 21 is the build number, so I think xml files somehow must be related to each build, right ? otherwise history is lost after a new build.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've learned that test results are stored in the bamboo DB so no problem with xml files and history.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes that is correct - file will be parsed and data put into database.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just note there is a bug in the Junit Parser which means duplicate test names don't get parsed correctly. See: https://jira.atlassian.com/browse/BAM-17738
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And another note regarding huge test suites (> 1k tests) which will not all show up in the tests page of the job. See https://jira.atlassian.com/browse/BAM-20632
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.