sauceconnect-runner

0.2.2 • Public • Published

sauceconnect-runner

Run Sauce Connect around any script, Node or not.

  1. Install it with npm:

    npm install [-g] sauceconnect-runner
  2. Set your Sauce Labs username and access key as environment variables:

    export SAUCE_USERNAME=your-username
    export SAUCE_ACCESS_KEY=your-access-key
  3. Run your Selenium tests with Sauce Connect in the background:

    sc-run npm test

How does it work?

If you run sc-run without any arguments, it simply runs the appropriate Sauce Connect binaries for your system and keeps the connection open so you can run Selenium tests on Sauce Labs against localhost.

If you run it with arguments, it will attempt to spawn them as a child process and close the Sauce Connect tunnel when the child exits. That's it!

Package Sidebar

Install

npm i sauceconnect-runner

Weekly Downloads

33

Version

0.2.2

License

CC0

Last publish

Collaborators

  • shawnbot