Circle CI
- Create an access token on Circle CI:

-
Create a workflow in
config.yml
file in.circle
folder in the root folder in your repository. -
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: ""
- 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.
- Connect a Circle CI in Testomatio:

You will need to enter the following:
- Circle CI Trigger Url (see how it works here)
- Circle Token (step 1)
- Save your connection
- Now, open “Configuration” tab and check Input Variables

- When the connection is saved, open a test and select “Run in CI”. Select a target ref and click “Launch”

- 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.