Skip to main content

Testery CLI

Project description

Testery CLI

To install you must have Python 3 and pip installed, then run:

pip install testery

Upgrade via

pip install testery --upgrade

Authentication

Most commands need a Testery API token. The CLI resolves it in this order:

  1. --token <value> on the command line
  2. The profile named by --profile <name> in ~/.testery/credentials
  3. The [default] profile in ~/.testery/credentials
  4. The TESTERY_API_TOKEN environment variable

The credentials file is INI-style:

[default]
token = your-token-here

[dev]
token = a-different-token

Login

The easiest way to populate the credentials file is the login command, which opens the Testery app in your browser. Navigate to Settings > Integrations to find or create an API token, then paste it back into the prompt (a URL containing ?token=... is also accepted):

testery login                  # saves to [default]
testery login --profile dev    # saves to [dev]

Create Test Run

Starts a test run.

testery create-test-run --token <yourTesteryApiToken> --project <projectKeyFromTestery> --build-id <uniqueBuildIdOfYourChoice> --environment <environmentToBeTested> --wait-for-results

When set, --fail-on-failure, will return an exit code of 1 if there are test failures.

Output Formats

  • teamcity
  • pretty
  • json
  • appveyor
  • octopus

Create Test Environment

Creates an environment where tests may be run.

testery create-environment --token "<your_Testery_Api_Token>" --key "<key>" --name "<name>" --variable "KEY1=FOO1" --variable "KEY2=FOO2" --variable "secure:KEY3=SECRET" --pipeline-stage "<pipeline_stage_name>"

Update Test Environment

Updates an environment where tests are run with some new variables or pipeline stage.

testery update-environment --token "<your_Testery_Api_Token>" --key "<key>" --name "<name>" --variable "KEY1=FOO1" --variable "KEY2=FOO2" --pipeline-stage "<pipeline_stage_name>"

Add environment variables from .env file

Takes in a .env file and adds or overwrites variables in target environment.

testery add-env-vars-from-file --token "<your_Testery_Api_Token>" --environment-key "<key>" --env-file "<path/to/file/.env>" --overwrite

Update Test Stage

Updates or creates a pipeline stage where tests are run with some new variables.

testery update-pipeline-stage --token "<your_Testery_Api_Token>" --name "<name>" --variable "KEY1=FOO1" --variable "KEY2=FOO2" --create-if-not-exists

Add Pipeline Stage variables from .env file

Takes in a .env file and adds or overwrites variables in target Pipeline.

testery add-stage-vars-from-file --token "<your_Testery_Api_Token>" --name "<name>" --env-file "<path/to/file/.env>" --overwrite

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

testery-1.17.0.tar.gz (32.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

testery-1.17.0-py3-none-any.whl (34.4 kB view details)

Uploaded Python 3

File details

Details for the file testery-1.17.0.tar.gz.

File metadata

  • Download URL: testery-1.17.0.tar.gz
  • Upload date:
  • Size: 32.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for testery-1.17.0.tar.gz
Algorithm Hash digest
SHA256 7a76cb770e9744ae220f0f5530035378a7a94bcbd0b45cb4e57e38ba7274a888
MD5 ff6c0279ba47741bfc6bcb710df39f66
BLAKE2b-256 58d1784a7fed1b99837b152650c582493a229763e070ac239d9c07f72f2e24a5

See more details on using hashes here.

File details

Details for the file testery-1.17.0-py3-none-any.whl.

File metadata

  • Download URL: testery-1.17.0-py3-none-any.whl
  • Upload date:
  • Size: 34.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for testery-1.17.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6e72b6c6a7e7f48f5f6fdbc14d067d6708c4b65c25afc1f75909450d549fb80
MD5 95c88a88fa3e2c7aa1944f562bdcbee6
BLAKE2b-256 63a1430325039a6cb1cac014985c01cea61fec61406786f8f46e25d0d37a2ba4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page