output errors for all failures of specific collection

when issueing a command with many specific items to collect,
print all collect failures instead of just the first one

--HG--
branch : multi-usageerror
This commit is contained in:
Ronny Pfannschmidt
2013-09-08 22:26:51 +02:00
parent f7f569f730
commit cf37c477bb
2 changed files with 16 additions and 5 deletions

View File

@@ -308,6 +308,14 @@ class TestGeneralUsage:
])
assert result.ret == 4 # usage error only if item not found
def test_report_all_failed_collections_initargs(self, testdir):
testdir.makepyfile(test_a="def", test_b="def")
result = testdir.runpytest("test_a.py::a", "test_b.py::b")
result.stderr.fnmatch_lines([
"*ERROR*test_a.py::a*",
"*ERROR*test_b.py::b*",
])
class TestInvocationVariants:
def test_earlyinit(self, testdir):