|
16 | 16 |
|
17 | 17 |
|
18 | 18 | def pytest_addoption(parser): # pylint: disable=missing-function-docstring |
19 | | - parser.addoption('-A', action='store_true', help='run ABINIT tests') |
20 | | - parser.addoption('-V', action='store_true', help='run VASP tests') |
| 19 | + parser.addoption('--abinit', action='store_true', help='run ABINIT tests') |
| 20 | + parser.addoption('--vasp', action='store_true', help='run VASP tests') |
21 | 21 | parser.addoption( |
22 | | - '-Q', action='store_true', help='run Quantum ESPRESSO tests' |
| 22 | + '--quantumespresso', |
| 23 | + action='store_true', |
| 24 | + help='run Quantum ESPRESSO tests' |
23 | 25 | ) |
24 | 26 | parser.addoption( |
25 | 27 | '--no-plot-compare', |
@@ -49,13 +51,13 @@ def pytest_runtest_setup(item): # pylint: disable=missing-function-docstring |
49 | 51 | vasp_marker = item.get_closest_marker("vasp") |
50 | 52 | qe_marker = item.get_closest_marker("qe") |
51 | 53 | if abinit_marker is not None: |
52 | | - if not item.config.getoption("-A"): |
| 54 | + if not item.config.getoption("--abinit"): |
53 | 55 | pytest.skip("test runs only with ABINIT") |
54 | 56 | if vasp_marker is not None: |
55 | | - if not item.config.getoption("-V"): |
| 57 | + if not item.config.getoption("--vasp"): |
56 | 58 | pytest.skip("test runs only with VASP") |
57 | 59 | if qe_marker is not None: |
58 | | - if not item.config.getoption("-Q"): |
| 60 | + if not item.config.getoption("--quantumespresso"): |
59 | 61 | pytest.skip("test runs only with Quantum ESPRESSO") |
60 | 62 |
|
61 | 63 |
|
|
0 commit comments