Currently all tests do mock away lengthy operations such as debootstrap, lxc/lxd interactions, ansible.
This shall be the default behavior also for future releases since those tests must also work within a
debuild environment and eventually within a docker image on github.
Idea:
Optionally run py.test-3 with additional arguments:
py.test-3 --lxc --debootstrap --ansible
The additional arguments could be evaluated within pytest_generate_tests and return a True or False (default).
See also:
https://docs.pytest.org/en/latest/example/parametrize.html
The lengthy operations are then only executed if the respective option is true.
Long tests (that even might require sudo) can now be started as follows:
sudo py.test-3 --all
Use the following command within the edi directory to display additional custom options:
py.test-3 --help
Currently all tests do mock away lengthy operations such as debootstrap, lxc/lxd interactions, ansible. This shall be the default behavior also for future releases since those tests must also work within a debuild environment and eventually within a docker image on github.
Idea: Optionally run py.test-3 with additional arguments: py.test-3 --lxc --debootstrap --ansible The additional arguments could be evaluated within pytest_generate_tests and return a True or False (default). See also: https://docs.pytest.org/en/latest/example/parametrize.html
The lengthy operations are then only executed if the respective option is true.