From: cu...@googlegroups.com [mailto:cu...@googlegroups.com]
On Behalf Of Dan Woodward
Sent: Monday, March 02, 2015 11:38 AM
To: cu...@googlegroups.com
Subject: [Cucumber] Capturing the HTML report for a failed build in Bamboo/Maven
We use Bamboo as our build system and are in the process of switching to Cucumber as our test automation tool of choice. I really like the HTML reports that we get out of cucumber; we're able to capture a lot more useful information in context for failures. The problem is that Bamboo doesn't seem to want to capture the reports after a build failure (using maven to execute the tests). I used to use Jenkins/Hudson and I seem to remember it being a lot easier to capture the results of tests and artifacts after a failed build.
Does anyone have any experience capturing the result of a failed 'mvn clean test' in bamboo?
You need to publish the HTML report as a build artifact. On the artifacts tab for the cucumber job setup something like:
Location: target/cucumber-reports/html
Copy Pattern: **/*.*
This will allow you to view the report on the artifacts tab of the build.
You may also consider outputting the junit format as well and specifying the location of those reports in the custom results directories field of the job configuration page. This will allow bamboo to fail the build, link cucumber test failures to Jira, and quarantine tests. Make sure you specify -Dmaven.test.failure.ignore=true on the goal if you want to use bamboo to quarantine tests, otherwise maven will still cause the build to fail.