Skip to content

Bitbucket Pipelines

To connect Bitbucket to Testomatio you will need a API Token created. API token can be added on “Repository settings” page of current user:

Testomat.io - Bitbucket API Token

Then create a new Bitbucket project. Select button “Create” on the top and “Project”.

Testomat.io - Bitbucket New Project

Make this build parametrized:

Testomat.io - Bitbucket Workspace Variables

Add the following parameters as a string with empty default values:

  • run
  • testomatio
  • grep

The job should include a step where the test runner is executed with —grep option and TESTOMATIO environment variables passed in.

For instance: - npx codeceptjs run-workers 2 --grep "${grep}"

Testomat.io - Bitbucket Job Step

If you use on-premise Testomatio setup you will also need to add testomatio_url parameter.

Save the build and switch to Testomat.io.

Testomat.io - Bitbucket Continuous Integration

Connect Bitbucket Pipelines in Testomatio:

Testomat.io - Connect a Bitbucket Pipelines in Testomatio