-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ctest does not run Python tests properly #1275
Comments
Note that the "other" tests use runner @casperdcl is there an easy way to let In the main time, I'm going to create a work-around PR. |
It's more complicated than I hoped, of course. The reason that the "other" tests are not found is that pytest by default looks for files called Executing
This is because the naming of functions. |
We have
SIRF/src/xSTIR/pSTIR/tests/CMakeLists.txt
Lines 21 to 26 in 44ed358
Running it on my desktop gives
Running it manually in
sources/STIR
givesBut there are a lot of tests which are not yet unittest/pytests. Note that
test_six_adjoint.py
is picked up,presumably because it contains an(Edit: because its filename matchesAssertionError
test_*py
)Trying to run
https://github.com/SyneRBI/SIRF/blob/75364cb9367da94dabca8f79cbb976fcd5eb1d3a/src/xSTIR/pSTIR/tests/test_all.py fails as its glob pattern includes the unittests.
Executing one by one flags up 2 problems:
The text was updated successfully, but these errors were encountered: