I'm suppose to run some jbehave(automated) tests in bamboo. Once the tests run i'll generate some junit compatible xml files so that bamboo could understand the same. All the jbehave tests are ran as part of a script, because i need to run the jbehave tests in a seperate screen. Example script is as follows.
Ex: export DISPLAY=:0 && xvfb-run --server-args="-screen 0, 1024x768x24" mvn clean integration-test -DskipTests -P integration-test -Dtest=*
I have one more junit parser task which points to the generated xml files. So, once the bamboo build runs and even if all the tests pass, i get red build with the message "No failed tests found, a possible compilation error occurred."
Can somone please help me on this regard.
Yep in my case i was not using any maven task ny default. All of my tasks are the "command" script tasks and i execute even teh maven command using the script. I can see couple of stack traces in the log(which are not affecting my tests any way). I guess, bamboo by default will scan the logs(if i'm not using maven tasks) and looks at those stack traces and assume that there is possibel compilation error. I basically want how i can over come this, because bamboo was able to read my test reports and it knows all of my tests are passed.
Actually, Bamboo is able to find the xml files and generates a good report. Please look at https://ci.openmrs.org/browse/FUNC-APPTEST/latest. You can see that bamboo found and succesfully parsed 26 files( I have only 26 tests in the application) and hence it says 26 tests passed.
Hm... is it possible that there are (apart of those valid 26 .xml files) also other .xml files in the same path? I was wondering if there could be some temporary 27th .xml file with invalid format generated that would trick Bamboo's junit parser to think there is a "compilaction error"...
Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot