| 27 | |
| 28 | |
| 29 | def pytest_addoption(parser: Parser) -> None: |
| 30 | group = parser.getgroup("general") |
| 31 | group.addoption( |
| 32 | "--runxfail", |
| 33 | action="store_true", |
| 34 | dest="runxfail", |
| 35 | default=False, |
| 36 | help="Report the results of xfail tests as if they were not marked", |
| 37 | ) |
| 38 | |
| 39 | parser.addini( |
| 40 | "strict_xfail", |
| 41 | "Default for the strict parameter of xfail " |
| 42 | "markers when not given explicitly (default: False) (alias: xfail_strict)", |
| 43 | type="bool", |
| 44 | # None => fallback to `strict`. |
| 45 | default=None, |
| 46 | aliases=["xfail_strict"], |
| 47 | ) |
| 48 | |
| 49 | |
| 50 | def pytest_configure(config: Config) -> None: |