
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
ember-cli-browserstack
Advanced tools
Facilitates automated testing using BrowserStack with ember-cli projects
ember browserstack:connect
ember browserstack:disconnect
ember browserstack:results
--build <buildName>
ember browserstack:browsers
ember install ember-cli-browserstack
Register for a BrowserStack account
Set environment variables BROWSERSTACK_USERNAME
and BROWSERSTACK_ACCESS_KEY
Add browsers to your testem.js
. You can see available browsers by running ember browserstack:browsers
For example:
launchers: {
bs_edge: {
exe: 'npx ember-cli-browserstack',
args: ['--os', 'Windows', '--osv', '10', '--b', 'edge', '--bv', 'latest', '-t', '1200', '-p',
'my-project-name', '--u', '<url>'],
protocol: 'browser'
},
bs_chrome: {
exe: 'node_modules/.bin/browserstack-launch',
args: ['--os', 'Windows', '--osv', '10', '--b', 'chrome', '--bv', 'latest', '-t', '600', '-p', 'my-project-name', '--u', '<url>'],
protocol: 'browser'
}
},
launch_in_ci: [
'bs_edge',
'Chrome'
]
To see available options run npx ember-cli-browserstack --help
or see https://www.browserstack.com/automate/capabilities and https://github.com/scottgonzalez/node-browserstack#browser-objects
Not all options are required.
Open a tunnel to BrowserStack using ember browserstack:connect
.
This will create a browserstack-local.pid
file, necessary for later disconnecting the tunnel.
Run tests (ember test
)
You may need to specify --host 127.0.0.1
and --test-port=7774
to support Safari
When tests are complete, close the tunnel to BrowserStack using ember browserstack:disconnect
The build name can be set by passing it to each launcher (--build
) or by setting the environment variable BROWSERSTACK_BUILD_NAME
.
If no build name is passed it will be determined by CI Environment variables, falling back to a random value.
The build name can be prefixed by setting BROWSERSTACK_BUILD_NAME_PREFIX
.
The name is used for grouping runs in the BrowserStack UI and to fetch results.
local identifier
In most cases you don't need to do anything with default setup. However if you are building custom matrix build CI pipeline, then you need to tell Browserstack where each instance is for its routing to work.
In case you need to setup custom value for local identifier
, you can set BROWSERSTACK_LOCAL_IDENTIFIER
env var.
If the env var is not set, this addon attempts to set a smart value for the local identifier based on the build name.
You can append to this smart value by setting BROWSERSTACK_LOCAL_ID_SUFFIX
.
See, for example, the GitHub Actions setup in this repository.
See for more information: https://www.browserstack.com/local-testing/automate#multiple-local-testing-connections
git clone <repository-url>
this repositorycd ember-cli-browserstack
yarn install
npm link
npm link ember-cli-browserstack
Thanks to BrowserStack for providing an open-source account for testing & development!
This addon is based on ember-cli-sauce and testem-browserstack. It also relies upon node-browserstack and browserstack-local-nodejs.
See the Contributing guide for details.
This project is licensed under the MIT License.
v3.0.0 (2024-01-23)
FAQs
Cross-browser testing with BrowserStack
The npm package ember-cli-browserstack receives a total of 8,822 weekly downloads. As such, ember-cli-browserstack popularity was classified as popular.
We found that ember-cli-browserstack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.