openSUSE/suse-doc-style-checker

Don't output "pytest.fail()" lines

Closed this issue · 3 comments

When tests fail, I get to see things like:

pytest.fail("Test {0!r} failed with {1} errors!".format(os.path.basename(xmltestcase), nr_errors))

This is ugly and somewhat blocks the view... Can we get rid of this?

Probably with pytest.fail(msg="Message", pytrace=False)

Is that a good idea? Or are we hiding overly valuable data from our tests there?

Implemented in feature/stuff