Sorry, we don't support your browser.  Install a modern browser

Show what branch an automated run was on#126

It would be very helpful to see what branch runs were made on. We’re attempting to set up our tests in CI, but need to be able to see runs in master vs feature branches.

5 years ago

You may use TESTOMATIO_ENV to show this info

please take a look here https://github.com/testomatio/reporter#adding-environments-to-run

5 years ago

Thanks - I’m not exactly sure how this translates to using the mocha reporter? For example, I have to pass the API key via reporter options. Can I add the report group/environment settings to these options as well?

5 years ago
  1. you should programatically read your current git branch
  2. and pass it to TESTOMATIO_ENV

for example,

TESTOMATIO_ENV=”experimental-feature” TESTOMATIO=1232312324 npx @testomatio/reporter@latest -c ‘npx wdio’

5 years ago