saucectl

module
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2020 License: Apache-2.0

README

saucectl

build

A command line interface for the Sauce Labs Testrunner Toolkit. This repository contains the Go binary that you use to kick off tests. If you look for more documentation on it, please have a look into our example repo.

Development Requirements

  • Go (v1.14 or higher)
  • Homebrew (v2.2.13 or higher)

Install

Run the following to install all dependencies:

$ make install

Build

To build the project, run:

$ make build

Test

To execute unit tests, run:

$ make test

Using saucectl

The new Command

saucectl new

This command will ask you to choose one of the frameworks:

After that, a ./sauce/config.yml file and an example test under the tests directory will be created, where you can start working from.

The run Command

saucectl run

This command will run the test based on the ./.sauce/config.yml file.

Flags
config
saucectl run --config <path>

Using the --config flag will run the tests specified by that config file.

env
saucectl run --env <key1>=<value1> --env <key2>=<value2> ...

Using the --env flag will define environment variables that are then available for use by the test framework.

region
saucectl run --region <region>

Using the --region flag will set the Sauce Labs region for the test execution. The region corresponds to the available regions at saucelabs.com and affects where your job information and assets are going to be stored.

timeout
saucectl run --timeout <seconds>

Using the --timeout flag will set the test timeout for the test runner framework.

Licensing

saucectl is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Directories

Path Synopsis
cli
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL