Added the printout of the pytest.skip reason with verbosity level 6 - #334
Open
bieryAtFnal wants to merge 4 commits into
Open
Added the printout of the pytest.skip reason with verbosity level 6#334bieryAtFnal wants to merge 4 commits into
bieryAtFnal wants to merge 4 commits into
Conversation
added 4 commits
August 6, 2026 11:47
…sity level is high.
…_verbosity_level_6
…_verbosity_level_6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
I recently ran some integration tests that skipped their tests because my linux shell environment had not yet been fully prepared (an extra location on disk needed to be added to the DB_PATH), and it was not obvious what was causing the tests to be skipped. I finally figured out the reason by adding the "-rs" option to the
pytestcommand. This option prints out the contents of thepytest.skipstatements that are executed in the code.My sense is that it would be useful to have the addition of the "-rs" option available from the global integtest bundle script, so I have added it for verbosity level 6 (which previously just enabled
druncdebug mode).To test this change, one can create a local software area from a recently nightly build, include the branch from this PR, build the software area, and run one of the
druncintegtests.For example, the following command should show a skipped test without information of why the test was skipped:
While the following command will show some information on why the test was skipped.
So far, I have preferred to provide print statements in the integration test code that describe why a test was skipped, rather than using the pytest.skip() messages, because that choice produces less cluttered output on the user console. But, other developers may make different choices, and that is why I think that an option to print out the contents of the pytest.skip messages will be useful.
Type of change
Testing checklist
dunedaq_integtest_bundle.sh)Further checks