Skip to main content

CI/CD

Integrating Tesmon with your CI/CD pipeline is a straightforward process that can be achieved in just two simple steps. By following these steps, you can seamlessly incorporate Tesmon into your existing workflow, regardless of your preferred CI/CD provider. We support popular CI/CD providers such as Jenkins, Travis CI, CircleCI, Github Actions and GitLab CI, among others.

Tesmon CI/CD integrations

Step 1: Install the Tesmon CLI

To begin, you need to install the Tesmon CLI globally. This can be done by running the following command in your CI/CD pipeline:

npm install -g @tesmon/cli

This command ensures that the Tesmon CLI is installed and available for use in your pipeline.

Step 2: Run the command

Next, you can run the Tesmon test command to execute your tests. Make sure to pass the Tesmon API token and the Tesmon environment ID as environment variables. Here's an example of how to configure this in your CI/CD pipeline:

tesmon test
PropertyDescriptionTypeRequired
TESMON_API_TOKENTesmon API tokenstringtrue
TESMON_ENVIRONMENT_IDID of the Tesmon environment to be usedstringtrue

By providing the Tesmon API token and environment ID as environment variables, the Tesmon CLI can seamlessly connect to your Tesmon account and execute the tests accordingly.

This integration approach allows you to leverage any CI/CD pipeline, as the Tesmon CLI has been architected to be compatible with various systems. With Tesmon integrated into your CI/CD pipeline, you can automate your testing process and ensure the quality and reliability of your software with ease.

Example

- name: Install Tesmon CLI
  run: npm install -g @tesmon/cli

- name: Run Tesmon tests
  run: tesmon test
  env:
  TESMON_API_TOKEN: ${{ secrets.TESMON_API_TOKEN }}
  TESMON_ENVIRONMENT_ID: ${{ secrets.TESMON_ENVIRONMENT_ID }}