Closed krzysiek6d closed 9 months ago
I managed to do that with some pytest hooks with similar approach as there: https://py.watch/pytest-save-full-error-output-to-file-ee37d6ccbd32
I don't need your help there, have a nice day! ;)
True, I think it's easier to store that part of status pytest output using other hooks. Good day :)
Hi
I'm using pytest-logger and I have example test:
Of course this test fails sometimes. The output of assertion is only printed to stdout/err.
Is it possible to store such output in logs for each failed test? How to do that? This would be very helpful to analyze issues. Currently there are only files created by pytest-logger itself and they do not contain such exceptions.