1 new commit in pytest: https://bitbucket.org/hpk42/pytest/commits/5ac2e164e7b4/ Changeset: 5ac2e164e7b4 User: hpk42 Date: 2013-09-26 08:45:50 Summary: fix issue355: junitxml generates name="pytest" tag. Affected #: 3 files
diff -r 5239f31ebf82eee712fc9f54f414e34afdfc1ddf -r 5ac2e164e7b41350274ce40f0495f82817e3c68c CHANGELOG --- a/CHANGELOG +++ b/CHANGELOG @@ -23,7 +23,9 @@ monkeypatch.replace("requests.get", myfunc will replace the "get" function of the "requests" module with ``myfunc``. - + +- fix issue355: junitxml puts name="pytest" attribute to testsuite tag. + - fix issue322: tearDownClass is not run if setUpClass failed. Thanks Mathieu Agopian for the initial fix. Also make all of pytest/nose finalizer mimick the same generic behaviour: if a setupX exists and fails, diff -r 5239f31ebf82eee712fc9f54f414e34afdfc1ddf -r 5ac2e164e7b41350274ce40f0495f82817e3c68c _pytest/junitxml.py --- a/_pytest/junitxml.py +++ b/_pytest/junitxml.py @@ -62,8 +62,8 @@ def pytest_addoption(parser): group = parser.getgroup("terminal reporting") - group.addoption('--junitxml', '--junit-xml', action="store", - dest="xmlpath", metavar="path", default=None, + group.addoption('--junitxml', '--junit-xml', action="store", + dest="xmlpath", metavar="path", default=None, help="create junit-xml style report file at given path.") group.addoption('--junitprefix', '--junit-prefix', action="store", metavar="str", default=None, @@ -217,7 +217,7 @@ logfile.write('<?xml version="1.0" encoding="utf-8"?>') logfile.write(Junit.testsuite( self.tests, - name="", + name="pytest", errors=self.errors, failures=self.failed, skips=self.skipped, diff -r 5239f31ebf82eee712fc9f54f414e34afdfc1ddf -r 5ac2e164e7b41350274ce40f0495f82817e3c68c testing/test_junitxml.py --- a/testing/test_junitxml.py +++ b/testing/test_junitxml.py @@ -37,7 +37,7 @@ result, dom = runandparse(testdir) assert result.ret node = dom.getElementsByTagName("testsuite")[0] - assert_attr(node, errors=0, failures=1, skips=3, tests=2) + assert_attr(node, name="pytest", errors=0, failures=1, skips=3, tests=2) def test_timing_function(self, testdir): testdir.makepyfile(""" Repository URL: https://bitbucket.org/hpk42/pytest/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit