Getting debug output during unit tests

Asked by paul luse

Spent some time debugging issues with changes I had to make to unit test code to support a feature in development and was unable to figure out how to get print messages in either the test code itself or in the application code during a unit test run. Thus, debug capability was limited to review of short failure messages and a lot of conjecture and experimentation.

Is it possible to get print statements for either or both the test code and application code during unit tests?

thanks
Paul

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
paul luse
Solved:
Last query:
Last reply:
Revision history for this message
paul luse (paul-e-luse) said :
#1

Thanks clayg: ./.unittests --nocapture --nologcapture