Publish test results from your CloudBees CI or Jenkins® Pipeline to CloudBees Unify to view and manage all testing information in one place. Configure your integrated CI Pipeline to send test results, then drill down through test suites and test cases to view each test status, run time, and log output.
| Before you begin, ensure you have completed the CI or Jenkins integration. For setup instructions, refer to Connect CI and Jenkins controllers. |
Configure your Multibranch Pipeline to publish test results
Publish your CI Pipeline test results to CloudBees Unify to leverage its enhanced analytics and quality gates.
To enable publishing test results from your CI build to CloudBees Unify:
-
Integrate your controller or operations center with CloudBees Unify by completing the steps in Connect CI and Jenkins controllers.
-
Install the JUnit plugin on your controller.
-
Configure the plugin on the job level by adding a Publish JUnit test result report in a Post-build Action.
-
Specify the path to your test result XML files in your Jenkinsfile, as in the following example:
pipeline { agent any stages { stage('Test') { steps { junit '**/testing/my-reports/*.xml' } } } } -
Include tests on your Pipeline that generate results in JUnit XML output format, according to the instructions in the table below.
Configure test tools for JUnit XML output
Configure your test tools to generate reports in JUnit XML format:
| Test tool | How to generate reports in JUnit XML format |
|---|---|
Appium |
JUnit XML format by default |
CTest |
|
Cucumber |
|
Cypress |
|
Espresso |
JUnit XML format by default |
Go |
|
Jest |
|
JUnit |
JUnit XML format by default |
Minitest |
|
Mocha |
|
Playwright |
Configure and specify the output file name in |
Pytest |
|
PHPUnit |
|
Selenium |
Does not directly generate JUnit XML (integrate with other testing frameworks). |
TestNG |
Add the |
| Once you have set up your Pipeline to publish test results, this configuration also enables the Test insights dashboard, which provides a comprehensive view of test metrics for your CI projects. For more information, refer to Test insights. |
View your CI build test results
Display test results from your CI build in the same platform as all your other DevOps projects.
To view the test results for a build:
-
Access the details for your CI build:
-
Select the organization and component associated with the CI build.
-
Select .
-
Select the build name to view build details.
-
-
Select Test results, and then select a viewing option.
The test suites or test cases are displayed accordingly. For more information, refer to Test results.
Troubleshooting
- Test results not appearing
-
Verify the following:
-
The JUnit plugin is installed and active on your controller.
-
Your test tool is generating JUnit XML format output.
-
The path pattern in your Jenkinsfile matches the location of your test result files.
-
The build has appropriate permissions to read the test result files.
-
- Incomplete test results
-
Check that:
-
All test result files are generated before the junit step executes.
-
The file pattern includes all test result locations.
-
Test result files are valid JUnit XML format.
-
- Test results show in controller but not in CloudBees Unify
-
Ensure:
-
The controller integration is connected and active.
-
The build completed after the integration was established.
-
The controller has network access to send data to CloudBees Unify.
-