gws.test.container_runner

Test runner (container).

Container test runner. Assumes tests are configured on the host with test/test.py configure.

Source code: gws.test.container_runner

Module Contents

gws.test.container_runner.enum_files_for_test(only_pattern)

Enumerate files to test, wrt –only option.

gws.test.container_runner.health_check()
gws.test.container_runner.health_check_service_mockserver()
gws.test.container_runner.health_check_service_postgres()
gws.test.container_runner.health_check_service_qgis()
gws.test.container_runner.http_ping(host, port)
gws.test.container_runner.main(args)
gws.test.container_runner.USAGE = Multiline-String
Show Value
"""
GWS in-container test runner
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    python3 runner.py <options> - <pytest options>

Options:

    -b, --base <path>     - path to the base dir (see `runner.base_dir` in `test.ini`)
    -o, --only <regex>    - only run filenames matching the pattern
    -v, --verbose         - enable debug logging

Pytest options:
    see https://docs.pytest.org/latest/reference.html#command-line-flags

"""