Commit 02905d8c authored by Roman Yurchak's avatar Roman Yurchak

Show pytest report for skipped tests, XFAIL, XPASS

parent 22ecc348
......@@ -99,7 +99,7 @@ build/renderedhtml.css: src/renderedhtml.less
test: all build/test.html build/test_data.txt
py.test test -v --instafail
py.test test -v -r sxX --instafail
build/test_data.txt: test/data.txt
......
......@@ -25,8 +25,8 @@
# - crash: The Python interpreter just stopped without a traceback. Will require
# further investigation. This usually seems to be caused by calling into a
# system function that doesn't behave as one would expect.
# - crash_chrome: Same as crash but only affecting Chrome
# - crash_firefox: Same as crash but only affecting Firefox
# - crash-chrome: Same as crash but only affecting Chrome
# - crash-firefox: Same as crash but only affecting Firefox
test___all__
test___future__
......
......@@ -285,16 +285,16 @@ def test_open_url(selenium):
@pytest.mark.flaky(reruns=2)
def test_run_core_python_test(python_test, selenium, request):
selenium.load_package('test')
name, error_flags = python_test
driver_name = (selenium.__class__.__name__
.replace('Wrapper', '').lower())
if ('crash' in error_flags or
'crash_' + driver_name in error_flags):
'crash-' + driver_name in error_flags):
request.applymarker(pytest.mark.xfail(
run=False, reason='known failure with code "{}"'
.format(error_flags)))
.format(','.join(error_flags))))
selenium.load_package('test')
try:
selenium.run(
"from test.libregrtest import main\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment