GithubHelp home page GithubHelp logo

mansona / karma-sauce-launcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from karma-runner/karma-sauce-launcher

0.0 3.0 0.0 147 KB

A Karma plugin. Launch any browser on SauceLabs!

License: MIT License

CoffeeScript 8.28% JavaScript 91.72%

karma-sauce-launcher's Introduction

karma-sauce-launcher

Use any browser on SauceLabs!

Installation

The easiest way is to keep karma-sauce-launcher as a devDependency in your package.json.

{
  "devDependencies": {
    "karma": "~0.10",
    "karma-sauce-launcher": "~0.1"
  }
}

You can also add it by this command:

npm install karma-sauce-launcher --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    // global config for SauceLabs
    sauceLabs: {
      username: 'jamesbond',
      accessKey: '007',
      startConnect: false,
      testName: 'my unit tests'
    },

    // define SL browsers
    customLaunchers: {
      sl_chrome_linux: {
        base: 'SauceLabs',
        browserName: 'chrome',
        platform: 'linux'
      }
    },

    browsers: ['sl_chrome_linux']
  });
};

Global options

  • username your SL username, you can also use SAUCE_USERNAME env variable.
  • accessKey your SL access key, you can also use SAUCE_ACCESS_KEY env variable.
  • tunnelIdentifier Sauce Connect can proxy multiple sessions, this is an id of a session.
  • startConnect do you wanna start Sauce Connect ? (defaults to true)
  • tags an array of tags (will show up in SL web interface)
  • testName test name (will show up in SL web interface)
  • build build id (will show up in SL web interface)
  • recordVideo do you wanna record video of the session ? (defaults to false)
  • recordScreenshots do you wanna take screenshots ? (defaults to true)

Per browser options

  • browserName name of the browser
  • version version of the browser (defaults to the latest available)
  • platform which platform ? (defaults to any)
  • deviceOrientation portrait or landscape (mobile testing option only)

For an example project of, check out AngularJS.


For more information on Karma see the homepage.

karma-sauce-launcher's People

Contributors

vojtajina avatar johanneswuerbach avatar santiycr avatar axemclion avatar rkistner avatar inspector-ambitious avatar

Watchers

Chris Manson avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.