Parameters

The following parameters are supported:

become_password

  • -K (become password): Specify a password to become root, default empty.
./testme.sh -K my_password

clock

  • -k (clock): Measure execution time, if present display in minutes the time the process took.
./testme.sh -k

coverage

  • -g (coverage): Optional flag indicating if generate a coverage report.
./testme.sh -g

docker

  • -d (docker): Optional flag indicating if run inside a Docker container.
./testme.sh -d

docker_image

  • -D (Docker image): Optional Docker image to use.

If this parameter is not specified, a debian:stable-slim image is used.

./testme.sh -d

executable

  • -x (python executable): This parameter can only take the values python or python3, and indicates wich executable to use when running python tasks.

    If python3 is available, this parameter defaults to python3, otherwise python is used.

./testme.sh -x python3

help

  • -h (help): Show help message and exit.
./testme.sh -h

path

  • -p (path): Optional path to project root folder.
./testme.sh -p /home/username/my-project

recursive

  • -r (recursive): Enter recursively each directory on project’s root directory and execute every testme.sh script found, the current folder is also included.

To avoid executing tests on a specific folder when running recursively, create a .testignore file on that folder, this is useful for example for running extensive bats tests on travis-ci and avoid error throwing for no logging in a long time.

./testme.sh -r

requirement

  • -i (install requirements): Install all requirements.
./testme.sh -i

type

  • -t (type): This parameter indicates which types of resources to process.

The allowed values are:

  • a : ansible.
  • b : bats.
  • m : molecule.
  • p : pytest.
  • t : tox.
  • y : poetry.

This parameter is empty by default.

./testme.sh -t abmpty