Make CTest do not truncate pytest output
As per our exchanges - thank you @clemenci for the tip :+1.
See also gaudi/Gaudi#261.
Merge request reports
Activity
added enhancement testing labels
requested review from @amathad
assigned to @erodrigu
Morning @amathad, I don't think this requires any testing since it is an config addition for pytest. But you see ... For sure what will be good is to look at the nightlies and check that the full pytest output gets printed :-).
Assuming all goes well, this should of course be added in the relevant places in DaVinci as well.
Edited by Eduardo Rodriguesmentioned in commit 00c28897
- Resolved by Eduardo Rodrigues
Morning @clemenci, I now see the full log at for example https://lhcb-nightlies.web.cern.ch/nightly/lhcb-head/3752/Analysis/x86_64_v2-centos7-gcc12-opt/tests. Thanks. Now, I also see that coverage is not tested by default - I had not appreciated that! I could not find any documentation on how to enhance the pytest, and I recall that months ago in fact pytest-cov was not available anyway, since I had to use a private version to run coverage tests locally on lxplus. So, how to modify the command
gaudi_add_tests(pytest ${CMAKE_CURRENT_SOURCE_DIR}/tests)
in https://gitlab.cern.ch/lhcb/Analysis/-/blob/master/Phys/FunTuple/CMakeLists.txt?ref_type=heads? Can I actually add, say,--cov=${CMAKE_CURRENT_SOURCE_DIR}/ --cov-report=term-missing
to the command and an appropriate.coveragerc
file and that's it? Am asking in case you've been through this before, else I can create a MR and trigger a test. Advance thanks.
mentioned in merge request DaVinci!1021 (merged)