lueschem / edi

Embedded development infrastructure.
https://www.get-edi.io
GNU Lesser General Public License v3.0
39 stars 12 forks source link

Provide possibility to run "long" tests. #10

Closed lueschem closed 7 years ago

lueschem commented 7 years ago

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.

lueschem commented 7 years ago

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