Test creating directory for junit-xml and resultlog

This commit is contained in:
curzona
2015-06-16 15:36:04 -07:00
parent 1db5c95414
commit 9346e18d8c
2 changed files with 23 additions and 0 deletions

View File

@@ -474,6 +474,15 @@ def test_logxml_changingdir(testdir):
assert result.ret == 0
assert testdir.tmpdir.join("a/x.xml").check()
def test_logxml_makedir(testdir):
testdir.makepyfile("""
def test_pass():
pass
""")
result = testdir.runpytest("--junitxml=path/to/results.xml")
assert result.ret == 0
assert testdir.tmpdir.join("path/to/results.xml").check()
def test_escaped_parametrized_names_xml(testdir):
testdir.makepyfile("""
import pytest