Add custom command line options.
(parser)
| 413 | |
| 414 | |
| 415 | def pytest_addoption(parser): |
| 416 | """Add custom command line options.""" |
| 417 | parser.addoption( |
| 418 | "--integration", |
| 419 | action="store_true", |
| 420 | default=False, |
| 421 | help="run integration tests" |
| 422 | ) |
| 423 | parser.addoption( |
| 424 | "--slow", |
| 425 | action="store_true", |
| 426 | default=False, |
| 427 | help="run slow tests" |
| 428 | ) |
| 429 | parser.addoption( |
| 430 | "--benchmark", |
| 431 | action="store_true", |
| 432 | default=False, |
| 433 | help="run performance benchmarks" |
| 434 | ) |
nothing calls this directly
no outgoing calls
no test coverage detected