(parser: Parser)
| 20 | |
| 21 | |
| 22 | def pytest_addoption(parser: Parser) -> None: |
| 23 | group = parser.getgroup("terminal reporting") |
| 24 | group.addoption( |
| 25 | "--pastebin", |
| 26 | metavar="mode", |
| 27 | action="store", |
| 28 | dest="pastebin", |
| 29 | default=None, |
| 30 | choices=["failed", "all"], |
| 31 | help="Send failed|all info to bpaste.net pastebin service", |
| 32 | ) |
| 33 | |
| 34 | |
| 35 | @pytest.hookimpl(trylast=True) |