Gathering detailed insights and metrics for latest-karma-browserstack-launcher
Gathering detailed insights and metrics for latest-karma-browserstack-launcher
Gathering detailed insights and metrics for latest-karma-browserstack-launcher
Gathering detailed insights and metrics for latest-karma-browserstack-launcher
A Karma plugin. Launch any browser on BrowserStack!
npm install latest-karma-browserstack-launcher
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
151 Stars
189 Commits
81 Forks
16 Watchers
35 Branches
48 Contributors
Updated on Jun 10, 2025
Latest Version
1.4.0
Package Id
latest-karma-browserstack-launcher@1.4.0
Unpacked Size
98.32 kB
Size
28.18 kB
File Count
9
NPM Version
6.4.1
Node Version
9.5.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
1
Use any browser on BrowserStack!
The easiest way is to keep karma-browserstack-launcher
as a devDependency in your package.json
. Just run,
1$ npm install karma-browserstack-launcher --save-dev
and it will be added automatically.
1// karma.conf.js 2module.exports = function(config) { 3 config.set({ 4 // global config of your BrowserStack account 5 browserStack: { 6 username: 'jamesbond', 7 accessKey: '007' 8 }, 9 10 // define browsers 11 customLaunchers: { 12 bs_firefox_mac: { 13 base: 'BrowserStack', 14 browser: 'firefox', 15 browser_version: '21.0', 16 os: 'OS X', 17 os_version: 'Mountain Lion' 18 }, 19 bs_iphone5: { 20 base: 'BrowserStack', 21 device: 'iPhone 5', 22 os: 'ios', 23 os_version: '6.0' 24 } 25 }, 26 27 browsers: ['bs_firefox_mac', 'bs_iphone5'] 28 }) 29}
username
your BS username, you can also use BROWSER_STACK_USERNAME
env variable.accessKey
your BS access key, you can also use BROWSER_STACK_ACCESS_KEY
env variable.startTunnel
do you wanna establish the BrowserStack tunnel ? (defaults to true
)tunnelIdentifier
in case you want to start the BrowserStack tunnel outside karma
by setting startTunnel
to false
, set the identifier passed to the -localIdentifier
option here (optional)retryLimit
how many times do you want to retry to capture the browser ? (defaults to 3
)captureTimeout
the browser capture timeout (defaults to 120
)timeout
the BS worker timeout (defaults to 300
build
the BS worker build name (optional)name
the BS worker name (optional)project
the BS worker project name (optional)binaryBasePath
the BS binary base bath, you can also use BROWSER_STACK_BINARY_BASE_PATH
env variable. This will override the default and set the base path to the BS local binary (optional)proxyHost
the host of your proxy for communicating with BrowserStack REST API and BrowserStackLocal (optional)proxyPort
the port of your proxy (optional)proxyUser
the username used for authentication with your proxy (optional)proxyPass
the password used for authentication with your proxy (optional)proxyProtocol
the protocol of your proxy (optional. default: http
. valid: http
or https
)forcelocal
force traffic through the local BrowserStack tunnel, passes flag through to BrowserStackTunnelvideo
enable video recording of session on BrowserStack (defaults to true
)device
name of the devicereal_mobile
allow browserstack to use a simulatorbrowser
name of the browserbrowser_version
version of the browseros
which platform ?os_version
version of the platformbuild
the BS worker build name (optional, defaults to global)name
the BS worker name (optional, defaults to global)project
the BS worker project name (optional, defaults to global)Note: you can also pass through any additional options supported by browserstack. (EG.
timezone
,resolution
, etc.)
See https://www.browserstack.com/automate/capabilities for a full list of supported options.
To report session results back to BrowserStack for display on your BrowserStack dashboard, use the following additional configuration:
1// karma.conf.js 2module.exports = function(config) { 3 config.set({ 4 // The rest of your karma config is here 5 // ... 6 reporters: ['dots', 'BrowserStack'] 7 }) 8}
By default, your Selenium and JS tests will run on real iOS devices on BrowserStack. Since we are in the implementation phase, we are still working on a few things, such as adding more devices, ability to test on local URLs, etc.
In case your tests are facing any issues on real iOS devices, we also provide iOS simulators where you can run your automated tests smoothly.
To access our iOS simulators, use the following capabilities:
1customLaunchers: { 2 iPad_3: { 3 real_mobile: false, 4 device: 'iPad 3rd (6.0)', 5 os: 'ios', 6 'os_version': '6.0', 7 'browser_version': null, 8 browser: 'Mobile Safari' 9 } 10}
List of iOS simulators you can test on:
device: 'iPad 3rd', 'os_version': '5.1'
device: 'iPad 3rd (6.0)', 'os_version': '6.0'
device: 'iPad Mini', 'os_version': '7.0'
device: 'iPad 4th', 'os_version': '7.0'
device: 'iPhone 4S', 'os_version': '5.1'
device: 'iPhone 4S (6.0)', 'os_version': '6.0'
device: 'iPhone 5', 'os_version': '6.0'
device: 'iPhone 5S', 'os_version': '7.0'
Many CI/CD systems will make the name or ID of the currently running build available via an environment variable. The follow environment variables below are supported by default:
process.env.BUILD_NUMBER
process.env.BUILD_TAG
process.env.CI_BUILD_NUMBER
process.env.CI_BUILD_TAG
process.env.TRAVIS_BUILD_NUMBER
process.env.CIRCLE_BUILD_NUM
process.env.DRONE_BUILD_NUMBER
BrowserStack's REST API documentation explains how to retrieve a list of desired capabilities for browsers.
For more information on Karma see the homepage.
Check out sample code working with karma-browserstack-launcher here.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 12/13 approved changesets -- score normalized to 9
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
38 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More