How to use browserstack-runner - 2 common examples

To help you get started, we’ve selected a few browserstack-runner examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tus / tus-js-client / bin / browserstack-jasmine.js View on Github external
function runTests(cb) {
  browserstack.run({
    username: BS_USERNAME,
    key: BS_KEY,
    test_path: "test/SpecRunner.html",
    test_framework: "jasmine2",
    test_server_port: 8081,
    browsers: browsers
  }, function (err, reports) {
    if (err) {
      return cb(err);
    }

    // Enable to see full report
    // console.log(JSON.stringify(reports, null, 2));
    console.log("Test Finished");
    console.log("");
github ivebe / CyrLatConverter / browserstackRunner.js View on Github external
var browserstackRunner = require('browserstack-runner');
var config = require('./browserstack.json');

browserstackRunner.run(config, function(error, report) {
    for (var i = 0; i < report.length; i++) {
      var err = report[i].suites.status;
      if (err === 'failed') {
        process.exitCode = 1;
        return
      }
    }
});

browserstack-runner

A command line interface to run browser tests over BrowserStack

MIT
Latest version published 4 years ago

Package Health Score

48 / 100
Full package analysis

Popular browserstack-runner functions

Similar packages