CI/CD Integration
With the Testiny CLI, you can also easily integrate your CI/CD pipeline with Testiny.
For the most popular CI environments, the CLI detects the CI environment variables and automatically adds them to your automated test run in Testiny, so you have all the information you need. No need for tedious configuration work! If you haven't worked with the Testiny CLI yet, see the Automation Guide for a detailed walk-through on how to work with the CLI.
Please see the examples to integrate with popular CI/CD tools like GitHub Actions, GitLab CI, Azure Pipelines, and more.
General Guide
No matter which CI/CD provider you use, the integration process remains largely the same across all environments. In most cases, you would follow these steps:
-
In your CI/CD pipeline, install the Testiny CLI. Typically, you would install the CLI with NPM, making it easy to install on any operating system or environment and keeping it up-to-date.
-
Run your automated tests and configure your automation framework to generate a report file. The CLI supports various formats, most importantly the JUnit XML format. Most frameworks support this format or can convert results into it.
-
Use the CLI to submit your test results to Testiny. The CLI creates a test run in Testiny and imports all the results. The CLI also automatically detects most commonly used environment variables and adds them to the automated test run.
More Resources
- Automation Guide: Learn more about adding additional fields or parallel test execution.
- Examples to integrate with popular CI/CD tools