UnityChipVerification/tests/conftest.py

15 lines
416 B
Python

import pytest
from mlvp.reporter import process_context, process_func_coverage
@pytest.hookimpl(trylast=True, optionalhook=True)
def pytest_reporter_context(context, config):
process_context(context, config)
@pytest.hookimpl(tryfirst=True, hookwrapper=True)
def pytest_runtest_makereport(item, call):
outcome = yield
report = outcome.get_result()
return process_func_coverage(item, call, report)