Skip to content

This example repo demonstrates Karma JS tests launched on BrowserStack with advanced reporting features. The example uses Mocha, Chai and Karma-Parallel frameworks.

Notifications You must be signed in to change notification settings

samirans89/karma-mocha-browserstack-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Karma-Mocha-BrowserStack Example

Sample to test parallel runs of Karma JS using Mocha and Chai frameworks with BrowserStack. This example contains advanced reporting features to report test session statuses on BrowserStack using karma-browserstack-launcher (branch: reporting_enhancements) (https://github.com/samirans89/karma-browserstack-launcher/tree/reporting_enhancements).

Prerequisites

Node and npm

Clone this repository

Install dependencies

Navigate to appropriate directory for testing and then install the dependencies by running

npm install

BrowserStack Configuration

Export the environment variables for the username and access key of your BrowserStack account. These can be found on the automate accounts page on BrowserStack.

export BROWSERSTACK_USERNAME=<browserstack-username>

export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>

You can further customize configuration in karma.conf.js. For detailed reference, visit karma-browserstack-launcher github repository here.

Run the tests

Execute the following command to run the karma tests:

npm test

About

This example repo demonstrates Karma JS tests launched on BrowserStack with advanced reporting features. The example uses Mocha, Chai and Karma-Parallel frameworks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published