2017-08-09 1 views

Répondre

6

Utilisez --collect-only conjointement avec -m <marker>:

$ py.test --collect-only -m x 
=========================== test session starts =========================== 
platform linux -- Python 3.6.2, pytest-3.2.1, py-1.4.34, pluggy-0.4.0 
rootdir: /home/they4kman/.virtualenvs/tmp-e1f1b42d6ff9bfa/src, inifile: 
collected 3 items               
<Module 'test_markers.py'> 
    <Function 'test_x'> 

====================== no tests ran in 0.00 seconds ======================= 
+1

Cela a fonctionné parfaitement, merci! – Wunderbread