fix and unify remote skip test/collect reports

This commit is contained in:
holger krekel
2010-11-13 20:53:35 +01:00
parent d81ffaa980
commit 47d3e99083
6 changed files with 27 additions and 20 deletions

View File

@@ -144,7 +144,7 @@ class TestDistribution:
subdir.ensure("__init__.py")
p = subdir.join("test_one.py")
p.write("def test_5():\n assert not __file__.startswith(%r)" % str(p))
result = testdir.runpytest("-v", "-d",
result = testdir.runpytest("-v", "-d",
"--rsyncdir=%(subdir)s" % locals(),
"--tx=popen//chdir=%(dest)s" % locals(), p)
assert result.ret == 0
@@ -394,3 +394,18 @@ def test_crashing_item(testdir):
def test_skipping(testdir):
p = testdir.makepyfile("""
import pytest
def test_crash():
pytest.skip("hello")
""")
result = testdir.runpytest("-n1", '-rs', p)
assert result.ret == 0
result.stdout.fnmatch_lines([
"*hello*",
"*1 skipped*"
])