Skip to content

Commit bb97f1b

Browse files
authored
feat: support for BROWSERSTACK_BUILD_NAME environment variable (#175)
1 parent b162faf commit bb97f1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ To specify BrowserStack capabilities via the TestCafe BrowserStack provider, use
146146
Capability | Environment Variable
147147
----------------------------- | ---------------------------------
148148
`project` | `BROWSERSTACK_PROJECT_NAME`
149-
`build` | `BROWSERSTACK_BUILD_ID`
149+
`build` | `BROWSERSTACK_BUILD_ID` (`BROWSERSTACK_BUILD_NAME` may also be used)
150150
`resolution` | `BROWSERSTACK_DISPLAY_RESOLUTION`
151151
`name` | `BROWSERSTACK_TEST_RUN_NAME`
152152
`acceptSslCerts` | `BROWSERSTACK_ACCEPT_SSL_CERTS`

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ module.exports = {
120120
// For the full list of capabilities, see https://www.browserstack.com/automate/capabilities
121121

122122
return {
123-
'build': process.env['BROWSERSTACK_BUILD_ID'],
123+
'build': process.env['BROWSERSTACK_BUILD_ID'] || process.env['BROWSERSTACK_BUILD_NAME'],
124124
'project': process.env['BROWSERSTACK_PROJECT_NAME'],
125125
'resolution': process.env['BROWSERSTACK_DISPLAY_RESOLUTION'],
126126
'name': process.env['BROWSERSTACK_TEST_RUN_NAME'],

0 commit comments

Comments
 (0)