From bb97f1bba0564e1b1932b49d9f1726e7eefa1cc3 Mon Sep 17 00:00:00 2001 From: q_h Date: Wed, 14 Sep 2022 09:19:34 +0300 Subject: [PATCH] feat: support for `BROWSERSTACK_BUILD_NAME` environment variable (#175) --- README.md | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 96db457..477f162 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ To specify BrowserStack capabilities via the TestCafe BrowserStack provider, use Capability | Environment Variable ----------------------------- | --------------------------------- `project` | `BROWSERSTACK_PROJECT_NAME` -`build` | `BROWSERSTACK_BUILD_ID` +`build` | `BROWSERSTACK_BUILD_ID` (`BROWSERSTACK_BUILD_NAME` may also be used) `resolution` | `BROWSERSTACK_DISPLAY_RESOLUTION` `name` | `BROWSERSTACK_TEST_RUN_NAME` `acceptSslCerts` | `BROWSERSTACK_ACCEPT_SSL_CERTS` diff --git a/src/index.js b/src/index.js index 1e11eab..e65892d 100644 --- a/src/index.js +++ b/src/index.js @@ -120,7 +120,7 @@ module.exports = { // For the full list of capabilities, see https://www.browserstack.com/automate/capabilities return { - 'build': process.env['BROWSERSTACK_BUILD_ID'], + 'build': process.env['BROWSERSTACK_BUILD_ID'] || process.env['BROWSERSTACK_BUILD_NAME'], 'project': process.env['BROWSERSTACK_PROJECT_NAME'], 'resolution': process.env['BROWSERSTACK_DISPLAY_RESOLUTION'], 'name': process.env['BROWSERSTACK_TEST_RUN_NAME'],