Jenkins and Ruby
This site is the new docs site currently being tested. For the actual docs in use please go to https://www.jenkins.io/doc. |
Integrating test results
Many tools, like Cucumber, can natively output JUnit-formatted XML which integrates by default into Jenkins via the "Publish JUnit test result report" Post-build Action. For tools which do not generate the appropriately formatted XML by default, there are gems which add the necessary formatters, such as ci_reporter.
By integrating the test reports into Jenkins, you can generate trends and reports. There are other plugins, such as the Email Ext plugin which can also make use of these machine-readable test reports to send email notifications with only the failing test cases listed.
Using plugins such as the Cucumber Test Result plugin improve the integration and discoverability of successful/unsuccessful Cucumber scenarios.
By integrating these tools into Jenkins, team members no longer need to attempt to parse thousands of lines of console output, but instead can more easily find the important information about a build.
Other presentations
-
Jenkins ♥ Ruby (
.pdf
) an introduction to integrating Jenkins with Ruby projects by R. Tyler Croy