The GitHub app for test sessions gives developers convenient, timely access to test results from their GitHub pull requests. Developers can start investigating failures immediately, without waiting for the entire CI process to finish. Test results are delivered as comments on pull requests.
Access to associated workflows and test files via links provided in the CloudBees Smart Tests web app is also available.
Configuration and features
The following steps are required to enable the GitHub app for test sessions:
-
Install the CloudBees Smart Tests GitHub app. Your GitHub org admin might have to approve that process.
-
Verify that your test session is associated with a GitHub pull request.
-
Use the CloudBees Smart Tests webapp to find a test session associated with a GitHub pull request.
-
Once the dropdown appears, the app is fully integrated. This association happens automatically when the CloudBees Smart Tests CLI detects environment variables that are set by typical CI systems to indicate that the test is running for a GitHub pull request.
-
Select View workflow run to get to the workflow in GitHub Actions where this test session was triggered.
-
Select View pull request to go directly to the pull request page for this session.
Additionally, once the sendGitHub app is integrated, you can jump directly to failing tests associated with files stored in sendGitHub repositories.
Accessing failing tests in sendGitHub
To access failing tests, follow these steps:
-
Navigate to a test session page with a failure.
-
Navigate to the Failed tests column at the bottom of the page.
-
Select the ellipses for the desired failed test.
-
Select the Open in sendGitHub link. This allows you to open this test file directly in sendGitHub.