GitHub Checks Integration
Setup guide for Integrating Github with HyperTest.
Pre-requisites
Your repositories are hosted on GitHub.
You have owner permission to the GitHub repository
HyperTest CLI is called from your CI tool(GitHub Actions, Jenkins, etc) on pull request events. Refer CI Integration
Sample file
A sample CI file for github-actions can be found below
Steps to integrate Github Checks
Step 1: Add the HyperTest app to your repo
Go to github.com/apps/hypertest-app
Click install and select the repositories for which you would like to install the HyperTest app.
Alternatively, you may also check if you have already installed the hypertest app, by navigating to the repository settings
Under "Integrations", select "GitHub apps"
Click on the "Configure" button.
Step 2: Copy the GitHub installation ID and repo URL
Copy the GitHub installation ID from the address bar of your browser. Refer to the Image below. Here the installation ID is 24858790
Step 3: Update HyperTest Configuration
To publish reports on your CI, we need to provide above ID's etc to HyperTest. You can either add it is a configuration in HyperTest Dashboard's Service Configuration or pass it as environment variable in your CI, while starting a test.
If you have already passed the Github Repo Url and Installation ID in your CI file, you dont need to do Step 3.
Below is example for both
a. HyperTest's Dashboard Configuration
Add both the installation ID and Repo URL in HyperTest's configuration. This can be done by navigating to the Settings page in HyperTest Dashboard. Click on Service Configuration and paste the ID and repo URL.
b. Add the below enviornment variables in your CI pipeline
See details in github actions file above
Click on "Update" and you have successfully integrated Github Checks with HyperTest.
Now every time your CI(Github Actions or other CI tools) triggers a test through HyperTest CLI, HyperTest will add Check reports to your commits.
By default, checks will be in a failed state in order for you to read the HyperTest Report.
Click on Details to view the HyperTest Report
Devs can see the detailed report from the HyperTest dashboard.
Last updated