Sauce Help

Rust CLI wrapper and library for the Sauce Labs public API. Obtain Job details for specific jobs, builds. A Job right now is: Virtual Desktop, iOS Simulator, & Android Emulator tests.

Installation

Using Cargo (package manager) crates.io: 1. Install rust + cargo. Copy-paste this into your command line: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh. Read more here: https://www.rust-lang.org/tools/install 2. cargo install shelper

From github: 1. Git clone 2. cargo build --release 3. Find the .exe in ./target/release/shelper

Usage

shelper -h or shelper --help

Examples

shelper -j 129571b50 -j 15b150b5

shelper -j 195b150b5 159nb15915 1595n159

shelper -j https://app.saucelabs.com/tests/123456

Development

cargo doc --open: compile and run the documentation

cargo install: install all the dependencies

cargo test: run all tests

cargo test -- --nocapture some_test_name: run a specific test & print all the stuff to stdout/stderr

Testing

Unit tests are not all 100% local. Real credentials are pulled from the env. variables in some cases. Real HTTP calls are made against the real API. Do not run tests endlessly as you could get rate limited with a 429.