-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
Is there a way to configure the output? For example, these options are always very confusing for many people and for me personally:
@dataclasses.dataclass
class Theme:
xfailed: Optional[str] = "green"
xpassed: Optional[str] = "red"
Test file
import pytest
@pytest.mark.xfail(reason="Because the world is round...")
@pytest.mark.parametrize("num", [0, 1])
def test_example(num):
assert 1 == num
Output
tests/test_cases/test.py xX 100% ██████████
Results (0.17s):
1 xpassed
1 xfailed
I'd prefer the failed tests to be marked with red, and passed with green.
Metadata
Metadata
Assignees
Labels
No labels