Skip to content

Atlassian Bamboo

Let’s configure Bamboo CI server to work for CodeceptJS framework:

  1. Create a plan for testomatio to run in testomatio

Configure

  1. Note the plan key. In this case its “TES”

  2. Configure the job to install node dependencies install

  3. Add the script to run codeceptJS tests:

TESTOMATIO_RUN=${bamboo.run} npx codeceptjs run --grep "${bamboo.grep}"

Following environment variables must be set:

  • Add TESTOMATIO environment variable with API key of Testomatio project.
  • If you are running a self-hosted Testomatio instance, add TESTOMATIO_URL variable to specify a host to which reports will be sent.

Script

  1. Set an input variable. Open Plan configuration:

image

add grep and run variables with an empty string as a default value

image

Now, configure Bamboo integration at Testomatio:

  1. Go to settings > CI and enter the details of Bamboo server. Check this to generate API token

CI settings

A project and plan keys can be found from URL:

image

  1. Enable run option on Input Variables tab. This allows CI to send a report to a specific Run inside Testomatio.

image

You can pass more input variables if you set them in Environment Configuration

  1. Open Runs page (or any test or suite) then select Run in CI option in extra menu.

image

Select “Bamboo” profile in a list. Optionally, configure a Run Title and select a Test Plan.

image

  1. Launch a run and wait for the results.

Runs view