gws.test.container_runner

Test runner (container).

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

Source code: gws.test.container_runner

Module Contents

gws.test.container_runner.USAGE = Multiline-String
Show Value
"""
GWS in-container test runner
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

Options:

    --work_dir <path>     - path to the local 'ini' file
    --only <regex>        - only run filenames matching the pattern
    --verbose             - enable debug logging

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

"""
gws.test.container_runner.main(args)
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_postgres()
gws.test.container_runner.health_check_service_qgis()
gws.test.container_runner.health_check_service_mockserver()
gws.test.container_runner.http_ping(host, port)