mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-11 16:00:57 +00:00
feat(tests): dump UI test report as you go
This commit is contained in:
parent
fd502f122f
commit
718d589acc
@ -260,6 +260,15 @@ def pytest_runtest_setup(item):
|
|||||||
pytest.skip("Skipping altcoin test")
|
pytest.skip("Skipping altcoin test")
|
||||||
|
|
||||||
|
|
||||||
|
def pytest_runtest_teardown(item):
|
||||||
|
"""Called after a test item finishes.
|
||||||
|
|
||||||
|
Dumps the current UI test report HTML.
|
||||||
|
"""
|
||||||
|
if item.session.config.getoption("ui") == "test":
|
||||||
|
testreport.index()
|
||||||
|
|
||||||
|
|
||||||
@pytest.hookimpl(tryfirst=True, hookwrapper=True)
|
@pytest.hookimpl(tryfirst=True, hookwrapper=True)
|
||||||
def pytest_runtest_makereport(item, call):
|
def pytest_runtest_makereport(item, call):
|
||||||
# Make test results available in fixtures.
|
# Make test results available in fixtures.
|
||||||
|
Loading…
Reference in New Issue
Block a user