We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 58f28bf + 6c54756 commit 1e97ea6Copy full SHA for 1e97ea6
testing/test_junitxml.py
@@ -249,6 +249,18 @@ def test_skip():
249
snode = tnode.find_first_by_tag("skipped")
250
snode.assert_attr(type="pytest.skip", message="hello25", )
251
252
+ def test_mark_skip_doesnt_capture_output(self, testdir):
253
+ testdir.makepyfile("""
254
+ import pytest
255
+ @pytest.mark.skip(reason="foo")
256
+ def test_skip():
257
+ print("bar!")
258
+ """)
259
+ result, dom = runandparse(testdir)
260
+ assert result.ret == 0
261
+ node_xml = dom.find_first_by_tag("testsuite").toxml()
262
+ assert "bar!" not in node_xml
263
+
264
def test_classname_instance(self, testdir):
265
testdir.makepyfile("""
266
class TestClass:
0 commit comments