Add a conftest to prefer faster tests

This uses pytest_collection_modifyitems for pytest's own tests to order
them, preferring faster ones via quick'n'dirty heuristics only for now.
This commit is contained in:
Daniel Hahler
2019-04-07 19:08:59 +02:00
parent b549438423
commit 4c0ba6017d
3 changed files with 29 additions and 0 deletions

View File

@@ -6,6 +6,8 @@ import py
import _pytest
import pytest
pytestmark = pytest.mark.slow
MODSET = [
x
for x in py.path.local(_pytest.__file__).dirpath().visit("*.py")