Saucier
A command line tool for working with Sauce Labs.
Installation
If you have Node.js installed, just run:
$ npm install saucier -g
This will install the saucier
executable globally on your system.
Usage
To know what the tool can do, run:
$ saucier --help
You can specify your SauceLabs username and access key through the --user
and --key
options, or by creating a .saucelabs
file in your home directory with the following content:
"username": "johndoe" "access_key": "550e8400-e29b-41d4-a716-446655440000"
You could then try creating a tunnel to SauceLabs:
$ saucier create-tunnel Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8Sauce Connect 3.0-r28, build 43* Debug messages will be sent to sauce_connect.log2013-09-20 17:14:49.228:INFO::jetty-7.x.y-SNAPSHOT2013-09-20 17:14:49.249:INFO::Started SelectChannelConnector@0.0.0.0:58347.---------------------------------------------------.| Have questions or need help with Sauce Connect? || Contact us: http://support.saucelabs.com/forums || Terms of Service: http://saucelabs.com/tos |-----------------------------------------------------2013-09-20 17:14:49,259 - / Starting \2013-09-20 17:14:49,262 - Please wait
And launching a browser:
$ saucier launch firefox-23-windows http://www.github.com --debug 2013-09-20T16:17:35.461Z - verbose: Trying to read cache file 2013-09-20T16:17:35.463Z - verbose: Cache file exists with current version 2013-09-20T16:17:35.471Z - verbose: Launching Firefox 23.0b5.
Testing
To run the test suite, install all dependencies:
$ make install
And then execute:
$ make lint test
If you want to generate a coverage report, make sure jscoverage
is in your path, and execute:
$ make coverage
Meta
- Code:
git clone git://github.com/unindented/saucier.git
- Home: http://github.com/unindented/saucier/
Contributors
Daniel Perez Alvarez (unindented@gmail.com)
License
Copyright (c) 2013 Daniel Perez Alvarez (unindented.org). This is free software, and may be redistributed under the terms specified in the LICENSE file.