How to Quickly Integrate TestRail with CircleCI

This video tutorial demonstrates how to integrate CircleCI with TestRail to automatically send test results to TestRail for centralized test management. The process begins by setting up a sample project in CircleCI, where the "config.yml" file is used to define the workflow and steps for running tests and uploading results to TestRail.

The tutorial first walks through the "build and test" job, which uses a Docker image to install browsers, check out code, and execute tests via Maven, generating a JUnit XML report. This report is saved in the workspace to be accessed by a second job.

The second job, “Install TestRail CLI and upload results,” uses a Python environment to run commands that install the TestRail CLI, parse the JUnit report, and send results to TestRail. The CLI requires parameters like the TestRail instance URL, credentials, project name, and report path.

Once configured, the workflow is committed and run on CircleCI, where each step's progress can be monitored. After the job completes, test results are visible in TestRail, including pass/fail statuses and error details for any failed tests. This integration allows teams to automatically track both manual and automated test results in TestRail, creating a comprehensive view of test coverage and enabling efficient reporting.

This setup is ideal for teams using CircleCI who want to streamline automated testing workflows, maintain centralized test documentation, and enhance traceability across projects.

You are in good company. Many of the world’s best teams use TestRail.