mirror of https://github.com/pyodide/pyodide.git
Show pytest report for skipped tests, XFAIL, XPASS
This commit is contained in:
parent
22ecc34847
commit
02905d8ca5
2
Makefile
2
Makefile
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue