Hi,
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.
Not an expert in bamboo, but most such errors occur because the script does not exit with 0, so bamboo marks it as failed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The most likely cause for this problem is that the xml files are not found (or cannot be parsed due to an invalid format). What path are you using to specify xml files location?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"...
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.