Skip to content

Circle CI

  1. Create an access token on Circle CI:
image
  1. Create a workflow in config.yml file in .circle folder in the root folder in your repository.

  2. This workflow will be used solely by Testomatio so it should start only on workflow_dispatch event. The event should be defined with the following input parameters:

parameters:
testomatio:
type: string
default: ""
run:
type: string
default: ""
testomatio_url:
type: string
default: ""
grep:
type: string
default: ""
  1. The job should include a step where the test runner is executed with —grep option and TESTOMATIO environment variables passed in. For instance:
- run:
name: Run tests
command: npx codeceptjs run --grep "<< pipeline.parameters.grep >>"
environment:
TESTOMATIO: << pipeline.parameters.testomatio >>
TESTOMATIO_RUN: << pipeline.parameters.run >>
TESTOMATIO_URL: << pipeline.parameters.testomatio_url >>

Select testomatio_url if you use on-premise version.

  1. Connect a Circle CI in Testomatio:
image

You will need to enter the following:

  • Circle CI Trigger Url (see how it works here)
  • Circle Token (step 1)
  1. Save your connection
  2. Now, open “Configuration” tab and check Input Variables
image
  1. When the connection is saved, open a test and select “Run in CI”. Select a target ref and click “Launch”
image
  1. This will start a new pipeline in Circle CI. Please check that the job was successfully triggered and completed. After the job has finished a run report will be available on the Runs page of Testomatio.