[svn r62211] merge 60797:HEAD of pytestplugin branch:

this merge contains:

* a new plugin architecture
* a pluginized pytest core
* many pytest related refactorings
* refactorings/streamlining of pytest's own tests

--HG--
branch : trunk
This commit is contained in:
hpk
2009-02-27 11:18:27 +01:00
parent 1c85d7fe9a
commit c17a09adaf
117 changed files with 6079 additions and 4370 deletions

View File

@@ -2,14 +2,13 @@
import py
failure_demo = py.magic.autopath().dirpath('failure_demo.py')
from py.__.test.testing import suptest
from py.__.test import event
pytest_plugins = "pytest_pytester"
def test_failure_demo_fails_properly():
sorter = suptest.events_from_cmdline([failure_demo])
def test_failure_demo_fails_properly(testdir):
sorter = testdir.inline_run(failure_demo)
passed, skipped, failed = sorter.countoutcomes()
assert passed == 0
assert failed == 20, failed
colreports = sorter.get(event.CollectionReport)
colreports = sorter.getnamed("collectionreport")
failed = len([x.failed for x in colreports])
assert failed == 5