Add command line options to pytest.
(parser)
| 2 | |
| 3 | |
| 4 | def pytest_addoption(parser): |
| 5 | """Add command line options to pytest.""" |
| 6 | parser.addoption( |
| 7 | "--mpiexec", |
| 8 | action="store", |
| 9 | default="mpiexec", |
| 10 | help="Name of program to run MPI, e.g. mpiexec", |
| 11 | ) |
| 12 | parser.addoption("--num-proc", action="store", default=1, help="Number of MPI processes to use") |
| 13 | |
| 14 | |
| 15 | @pytest.fixture |
nothing calls this directly
no outgoing calls
no test coverage detected