
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
karma-testingbot-launcher
Advanced tools
Run your tests on the TestingBot browser cloud!
Install karma-testingbot-launcher as a devDependency in your package.json:
npm install karma-testingbot-launcher --save-dev
This launcher is used to run your tests across many browsers and platforms on TestingBot. Typically this runner is used in a CI (Continuous Integration) system.
To use and configure this launcher, you will need to add two properties to your top-level Karma config, testingbot and customLaunchers, set the browsers array to use TestingBot browsers, and add the testingbot reporter.
The testingbot object defines global properties for each browser/platform while the customLaunchers object configures individual browsers. The testingbot reporter will send back the test success state to https://testingbot.com. Here is a sample Karma config to get the launcher running:
module.exports = function(config) {
// Check out https://testingbot.com/support/getting-started/browsers.html for all browser possibilities
var customLaunchers = {
TB_chrome: {
base: 'TestingBot',
browserName: 'chrome',
platform: 'Windows 7',
version: '35'
},
TB_firefox: {
base: 'TestingBot',
browserName: 'firefox',
version: '30'
}
}
config.set({
// The rest of your karma config is here
// ...
testingbot: {
testName: 'Web App Unit Tests'
},
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
reporters: ['dots', 'testingbot'],
singleRun: true
})
}
Note: this config assumes that process.env.TB_KEY and process.env.TB_SECRET are set.
testingbot config properties shared across all browsersType: String
Default: process.env.TB_KEY
Your TestingBot api key, you can sign up here.
Type: String
Default: process.env.TB_SECRET
Your TestingBot api secret which you will see on your account page.
Type: Boolean
Default: true
If true, TestingBot Tunnel will be started automatically. Set this to false if you are launching tests locally and want to start TestingBot manually.
Type: Object
Default:
{
apiKey: 'apiKey',
apiSecret: 'apiSecret',
tunnelIdentifier: 'tunnelId' //optional
}
Options to send to TestingBot. Check here for all available options.
Type: String
default: hub.testingbot.com
Type: Number
default: 80
Type: String
Default: One of the following environment variables:
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
ID of the build currently running. This should be set by your CI.
Type: String
Default: 'Karma test'
Name of the unit test group you are running.
Type: Array of Strings
Tags to use for filtering jobs in your TestingBot account.
Type: String
TestingBot Tunnel can proxy multiple sessions, this is an id of a tunnel session.
Type: Boolean
Default: false
Set to true if you want to record a video of your Karma session.
Type: Boolean
Default: true
Set to false if you don't want to record screenshots.
Type: String
Default: null
Control who can view job details.
customLaunchers config propertiesThe customLaunchers object has browser names as keys and configs as values. Documented below are the different properties which you can configure for each browser/platform combo.
Note: You can learn about the available browser/platform combos on the TestingBot browsers page.
Type: String
Required: true
This defines the base configuration for the launcher. In this case it should always be TestingBot so that browsers can use the base TestingBot config defined at the root testingbot property.
Type: String
Required: true
Name of the browser.
Type: String
Default: Latest browser version for all browsers
Version of the browser to use.
Type: String
Default: 'Linux' for Firefox/Chrome, 'Windows 7' for IE/Safari
Name of platform to run browser on.
Type: String
Default: 'portrait'
Accepted values: 'portrait' || 'landscape'
Set this string if your unit tests need to run on a particular mobile device orientation for Android Browser or iOS Safari.
You can find more information on our website regarding TestingBot Tunnel and Karma.
FAQs
A Karma plugin. Launch any browser on TestingBot!
We found that karma-testingbot-launcher 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.