@clemenci @gcorti @admorris
Currently we have one ctest for all the pytest in one package. This will change this behaviour to have one ctest per one .py file with pytests in it, so that this is similar to what we have for qmt tests.
pytest is a bit more clever than that: it only takes tests from files called test_*.py or *_test.py (see the doc).
pytest
test_*.py
*_test.py
With this approach you may try to run non-test files as test (not really a problem, but a waste of time and a bit confusing).
It might be better to use pytest --collect-only and parse the output.
pytest --collect-only
pytest
is a bit more clever than that: it only takes tests from files calledtest_*.py
or*_test.py
(see the doc).With this approach you may try to run non-test files as test (not really a problem, but a waste of time and a bit confusing).
It might be better to use
pytest --collect-only
and parse the output.