-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branchtype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature
Description
beautifulsoup4 (4.4.1)
chardet (2.3.0)
defer (1.0.6)
html5lib (0.999)
lxml (3.5.0)
pip (8.1.1)
psutil (3.4.2)
py (1.4.31)
pygobject (3.20.0)
pysqlite (2.7.0)
pytest (2.8.7)
python-apt (1.1.0b1)
python-debian (0.1.27)
pyxdg (0.25)
setuptools (20.7.0)
six (1.10.0)
vboxapi (1.0)
wheel (0.29.0)
platform linux2 -- Python 2.7.12, pytest-2.8.7, py-1.4.31, pluggy-0.3.1 -- /usr/bin/python
$ py.test -v testscript.py
============================= test session starts ==============================
platform linux2 -- Python 2.7.12, pytest-2.8.7, py-1.4.31, pluggy-0.3.1 -- /usr/bin/python
cachedir: .cache
rootdir: /home/rjl/pytest, inifile:
collected 8 items
testscript.py::TestAclass::test_1 PASSED
testscript.py::TestAclass::test_2 PASSED
testscript.py::TestAclass::test_3 PASSED
testscript.py::TestAclass::test_4 PASSED
testscript.py::TestBclass::test_21 SKIPPED
testscript.py::TestBclass::test_22 SKIPPED
testscript.py::TestBclass::test_23 SKIPPED
testscript.py::TestBclass::test_24 SKIPPED
===================== 4 passed, 4 skipped in 0.03 seconds ======================
$ py.test -rv testscript.py
============================= test session starts ==============================
platform linux2 -- Python 2.7.12, pytest-2.8.7, py-1.4.31, pluggy-0.3.1
rootdir: /home/rjl/pytest, inifile:
collected 8 items
testscript.py ....ssss
===================== 4 passed, 4 skipped in 0.01 seconds ======================
$ py.test -rs testscript.py
============================= test session starts ==============================
platform linux2 -- Python 2.7.12, pytest-2.8.7, py-1.4.31, pluggy-0.3.1
rootdir: /home/rjl/pytest, inifile:
collected 8 items
testscript.py ....ssss
=========================== short test summary info ============================
SKIP [4] /home/rjl/pytest/conftest.py:8: test needs -A option to run
===================== 4 passed, 4 skipped in 0.01 seconds ======================
I want the output from the first one showing 'PASSED' or 'SKIPPED' but I also want to see the reason a specific test was skipped.
Something like:
$ py.test -v testscript.py
============================= test session starts ==============================
platform linux2 -- Python 2.7.12, pytest-2.8.7, py-1.4.31, pluggy-0.3.1 -- /usr/bin/python
cachedir: .cache
rootdir: /home/rjl/pytest, inifile:
collected 8 items
testscript.py::TestAclass::test_1 PASSED
testscript.py::TestAclass::test_2 PASSED
testscript.py::TestAclass::test_3 PASSED
testscript.py::TestAclass::test_4 PASSED
testscript.py::TestBclass::test_21 SKIPPED (needs -A option to run)
testscript.py::TestBclass::test_22 SKIPPED (needs -A option to run)
testscript.py::TestBclass::test_23 SKIPPED (needs -A option to run)
testscript.py::TestBclass::test_24 SKIPPED (needs -A option to run)
Zac-HD
Metadata
Metadata
Assignees
Labels
topic: reportingrelated to terminal output and user-facing messages and errorsrelated to terminal output and user-facing messages and errorstype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branchtype: proposalproposal for a new feature, often to gather opinions or design the API around the new featureproposal for a new feature, often to gather opinions or design the API around the new feature