timcavalier
3 years agoNew Contributor
robot framework integration via bitbucket pipelines (junit xml output result file not found)
Hi,
I've been working through this "smartbear" example for robot framework integration ...
All fine via the command line - but I'm struggling when try to do same within "bitbucket-pipelines.yml" setup.
The tests seem to run and create output files (but they're in the default location) ...
3 tests, 2 passed, 1 failed
==============================================================================
Output: /opt/atlassian/pipelines/agent/build/output.xml
XUnit: /opt/atlassian/pipelines/agent/build/junitresult.xml
Log: /opt/atlassian/pipelines/agent/build/log.html
Report: /opt/atlassian/pipelines/agent/build/report.html
==============================================================================
Searching for test report files in directories named [test-results, failsafe-reports, test-reports, TestResults, surefire-reports] down to a depth of 4
Finished scanning for test reports. Found 0 test report files.
Merged test suites, total number tests is 0, with 0 failures and 0 errors
==============================================================================
How do I specify the output folder location so the resulting XML output will get picked up as being Junit test results ???
- robot -x junitresult.xml mytest.robot
Any advice would be appreciated as I've lost lots of hours to this already (clearly, I'm not a linux/python expert) ...
Thanks.
- FYI. I eventually worked this out for myself ...- robot -x ./test-reports/junitresult.xml mytest.robot