2.7.18 • Published 5 years ago

@asayer/asayer-cli v2.7.18

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

asayer-cli

Asayer CLI

Installation:

npm i -g @asayer/asayer-cli

Usage:

$ asayer --help
Usage: asayer [options] [command]

     _                              _          ____ _     ___
    / \   ___  __ _ _   _  ___ _ __(_) ___    / ___| |   |_ _|
   / _ \ / __|/ _` | | | |/ _ \ '__| |/ _ \  | |   | |    | |
  / ___ \\__ \ (_| | |_| |  __/ |_ | | (_) | | |___| |___ | |
 /_/   \_\___/\__,_|\__, |\___|_(_)|_|\___/   \____|_____|___|
                    |___/

Options:
  -V, --version                  output the version number
  -t, --token <token>            your user token from Asayer, override the configured token if present
  -u, --url <url>                custom test url
  -T, --tests <test1,test2,...>  a list containing test names or ids to be executed separated by comma ","
  -r, --report <path>            where to save your report (path to xml file)
  -i, --interactive              use interactive mode
  -d, --debug                    debug console errors
  -h, --help                     output usage information

Commands:
  setup [options]                Configure your Asayer CLI
  local [options]                Uses a local server for asayer onpremise
  docker [options]               Configure docker for local testing

Command's help:
  $ asayer [command] --help
  Examples:
    $ asayer setup --help
$ asayer setup --help

Usage: setup [options]

Configure your Asayer CLI

Options:
  -t, --token <token>  your user token from Asayer
  -h, --help           output usage information
$ asayer local --help
Usage: local [options]

Uses a local server for asayer onpremise

Options:
  -t, --token <token>            your user token from Asayer
  -T, --tests <test1,test2,...>  a list containing test names or ids to be executed separated by comma ","
  -u, --url <url>                custom test url
  -U, --update                   update images
  -c, --clean                    clean residual containers
  -S, --stop-all                 stop all running tests
  -i, --interactive              use interactive mode
  -h, --help                     output usage information
$ asayer docker --help
Usage: docker [options]

Configure docker for local testing

Options:
  -v, --verify                  verify if the current docker connection is valid
  -h, --host <host>             the docker host address (default: "127.0.0.1")
  -p, --port <port>             the docker host port (default: 2375)
  -P, --protocol <protocol>     the docker host protocol (default: "auto detect")
  -c, --cert-dir <path>         the docker host's certificate directory (default: "/etc/docker/certs.d/")
  --cert <client cert>          the path or name of the client's certificate file (default: "cert.pem")
  --key <client key>            the path or name of the client's key file (default: "key.pem")
  --ca <certificate authority>  the path or name of the certificate authority file (default: "ca.pem")
  --no-check                    don't check the server identity
  --docker-version <version>    the docker version (default: "auto detect")
  --show                        print the current configuration
  -i, --interactive             use interactive mode
  -h, --help                    output usage information

Token configuration:

To start you have to get your token from Preferences In order to configure your token with, use one of these steps:

  • saving your token, so you don't have to write it with each command:
    • interactive mode: asayer setup npm.io
    • direct method: asayer setup --token "MY_TOKEN..."
  • using the environment variable ASAYER_TOKEN
  • using the option --token "MY_TOKEN..." when executing each command

If more than 1 method is used at the same time, the token value will be as follow: 1. --token "MY_TOKEN..." 2. the environment variable 3. the saved token

Running tests:

  • To run all tests: asayer npm.io
  • To sepecify which test to run: asayer --tests "TEST_ID1,TEST_ID2"
  • To change the test's URL: asayer --url "https://asayer.io"
  • To use interactive mode: asayer -i

On premise:

require docker to be installed on the host

Configure:

To start using asayer on premise you need to configure your cli in order to interact with docker, to configure your CLI/docker you can use one of the following steps:

  • Default configuration: to check if the default configuration works use asayer docker --verify
  • Interactive mode: asayer docker -i
  • Direct method: asayer docker --host "127.0.0.1" --port 3000 --protocol "https" any missing option will be replaced by the default value the list of options: -h, --host <host>: the docker host address (default: "127.0.0.1") -p, --port <port>: the docker host port (default: 2375) -P, --protocol <protocol>: the docker host protocol (default: "auto detect") -c, --cert-dir <path>: the docker host's certificate directory (default: "/etc/docker/certs.d/") --cert <client cert>: the path or name of the client's certificate file (default: "cert.pem") --key <client key>: the path or name of the client's key file (default: "key.pem") --ca <certificate authority>:the path or name of the certificate authority file (default: "ca.pem") --no-check: don't check the server identity * --docker-version <version>:the docker version (default: "auto detect") In order to check if your configuration is valid, run asayer docker --verify

Running tests:

To run your tests on premise:

  • Run all tests: asayer local
  • Run selected tests: asayer local --tests "TEST_ID1,TEST_ID2"
  • Change test's URL: asayer local --url "https://asayer.io"
  • Use interactive mode: asayer local -i

Stopping tests:

In case you have lost the connection to the terminal or started the asayer local command in the background, the test containers will keep running until the end of the test, but you can use asayer local --stop-all to stop all the running containers

2.7.18

5 years ago

2.7.16

5 years ago

2.7.15

5 years ago

2.7.12

5 years ago

2.7.11

5 years ago

2.7.10

5 years ago

2.7.9

5 years ago

2.7.8

5 years ago

2.7.7

5 years ago

2.7.6

5 years ago

2.7.5

5 years ago

2.7.2

5 years ago

2.7.1

5 years ago

2.7.0

5 years ago

2.6.50

5 years ago

2.6.48

5 years ago

2.6.47

5 years ago

2.6.46

5 years ago

2.6.45

5 years ago

2.6.44

5 years ago

2.6.43

5 years ago

2.6.42

5 years ago

2.6.41

5 years ago

2.6.40

5 years ago

2.6.39

5 years ago

2.6.38

5 years ago

2.6.37

5 years ago

2.6.36

5 years ago

2.6.35

5 years ago

2.6.34

5 years ago

2.6.33

5 years ago

2.6.32

5 years ago

2.6.31

5 years ago

2.6.30

5 years ago

2.6.29

5 years ago

2.6.28

5 years ago

2.6.27

5 years ago

2.6.26

5 years ago

2.6.25

5 years ago

2.6.24

5 years ago

2.6.23

5 years ago

2.6.18

5 years ago

2.6.17

5 years ago

2.6.16

5 years ago

2.6.15

5 years ago

2.6.14

5 years ago

2.6.13

5 years ago

2.6.12

5 years ago

2.6.11

5 years ago

2.6.10

5 years ago

2.6.8

5 years ago

2.6.7

5 years ago

2.6.6

5 years ago

2.6.5

5 years ago

2.6.4

5 years ago

2.6.3

5 years ago

2.6.2

5 years ago

2.6.1

5 years ago

2.6.0

5 years ago

1.4.5

5 years ago

1.4.4

5 years ago

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.3.1

5 years ago

1.2.1

6 years ago

1.1.1

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago