path: root/pytest.ini
AgeCommit message (Collapse)AuthorFilesLines
2019-01-05test: enable parallelism by default for pytestPeter Wu1-1/+1
Consistent with tools like "ninja", enable parallelism by default. It can be disabled again with `pytest -n0`. This makes pytest-xdist a dependency when pytest is used as test runner. This does not affect the unittest-based test runnet (test/test.py). Change-Id: I4dc905f097c57a869aa39487b15361502b431616 Reviewed-on: https://code.wireshark.org/review/31371 Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-05pytest.ini: declare minimum version requirementPeter Wu1-0/+1
pytest 3.0.0 (2016-08-18) or newer is required due to the use of the yield keyword in fixtures and the use of getfixturevalue. Do not bother supporting older versions, install newer versions via pip instead. Change-Id: I35ae787e2abcc706c19251d29a7d5b8513079c15 Reviewed-on: https://code.wireshark.org/review/31373 Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-05test: allow running pytest without specifying the tests directoryPeter Wu1-0/+4
This allows `pytest` to be executed from the top-level source or build directory (or any other directory below). Change-Id: Ib7af2ea2aaf01319d6839d2dc67228fbb5a7bc34 Reviewed-on: https://code.wireshark.org/review/31370 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>