gws.test.host_runner
¶
Test configurator and invoker.
This script runs on the host machine.
Its purpose is to create a docker compose file, start the compose
and invoke the test runner inside the GWS container (via gws test
).
Source code: gws.test.host_runner
Module Contents¶
- gws.test.host_runner.APP_DIR¶
- gws.test.host_runner.USAGE = Multiline-String¶
Show Value
""" GWS test runner ~~~~~~~~~~~~~~~ python3 test/host_runner.py <command> <options> - <pytest options> Commands: go - configure, start the test environment, run tests and stop configure - configure the test environment start - configure and start the test environment stop - stop the test environment restart - restart the test environment run - run tests in a started environment options: --ini <path> - path to the local 'ini' file (can also be passed in the GWS_TEST_INI env var) --manifest <manifest> - path to MANIFEST.json --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.host_runner.main(args)¶
- gws.test.host_runner.do_configure(options, args)¶
- gws.test.host_runner.do_run(options, args)¶
- gws.test.host_runner.make_docker_compose_yml(options)¶
- gws.test.host_runner.make_pg_service_conf(options)¶
- gws.test.host_runner.make_pytest_ini(options)¶
- gws.test.host_runner.compose_start(options, detach=False)¶
- gws.test.host_runner.compose_stop(options)¶
- gws.test.host_runner.read_file(path)¶
- gws.test.host_runner.write_file(path, s)¶
- gws.test.host_runner.load_options(local_ini)¶
- gws.test.host_runner.make_dir(d)¶
- gws.test.host_runner.clear_dir(d)¶
- gws.test.host_runner.service_gws(options)¶
- gws.test.host_runner.service_qgis(options)¶
- gws.test.host_runner.service_postgres(options)¶
- gws.test.host_runner.service_mockserver(options)¶