junitxml tests: extend with extra items

This commit is contained in:
Ronny Pfannschmidt 2015-12-17 22:30:27 +01:00
parent 713069ebd4
commit ec5a429c77
1 changed files with 3 additions and 0 deletions

View File

@ -706,6 +706,7 @@ def test_fancy_items_regression(testdir):
return [ return [
FunItem('a', self), FunItem('a', self),
NoFunItem('a', self), NoFunItem('a', self),
NoFunItem('b', self),
] ]
def pytest_collect_file(path, parent): def pytest_collect_file(path, parent):
@ -731,8 +732,10 @@ def test_fancy_items_regression(testdir):
assert items == [ assert items == [
u'conftest a conftest.py', u'conftest a conftest.py',
u'conftest a conftest.py', u'conftest a conftest.py',
u'conftest b conftest.py',
u'test_fancy_items_regression a test_fancy_items_regression.py', u'test_fancy_items_regression a test_fancy_items_regression.py',
u'test_fancy_items_regression a test_fancy_items_regression.py', u'test_fancy_items_regression a test_fancy_items_regression.py',
u'test_fancy_items_regression b test_fancy_items_regression.py',
u'test_fancy_items_regression test_pass' u'test_fancy_items_regression test_pass'
u' test_fancy_items_regression.py', u' test_fancy_items_regression.py',
] ]