Skip to content

Instantly share code, notes, and snippets.

View dufourpascal's full-sized avatar

Pascal Dufour dufourpascal

View GitHub Profile
{"label":"Coverage","message":"47%","schemaVersion":1,"color":"red"}
@dufourpascal
dufourpascal / conftest.py
Created July 26, 2021 06:25
pytest custom summary report
from typing import List, Dict
from _pytest.terminal import TerminalReporter
from _pytest.config import Config
from _pytest.nodes import Item
from _pytest.runner import CallInfo
# holds the test results grouped by xray marker
# key is the xray marker string
# value is a list of all test outcomes, True for PASSED, False for FAILED