Allow traces to not be captured by pytest and shown during ape test
#2138
Labels
category: feature
New feature or request
ape test
#2138
Overview
Pytest by default captures all output and it will not show you anything until the end of a failed test session.
However, there are times when a user may want to see traces of calls such as by using
show_trace=True
on calls made during tests.The issue is that no trace will be shown because pytest captures it and tests pass.
Specification
Kind of tricky, but here is what I am thinking...
The class that is responsible for outputing traces does have access to the
._test_runner
... I am pretty sure... so have it check for the caplog plugin and disable it during the showing of the trace and then re-enable it.Potential Issues
it has the potential if disrupting our own tests which check for certain traces being outputed, but i know we use the file based approach because of other reasons so maybe it wont be a problem.
The text was updated successfully, but these errors were encountered: