Add support to keep files after test suite passes #500
Labels
area: test
Issues related to the test suite
type: feature
Issues that include feature request or feature idea
Description
Add the support to keep files in
test_output
after the execution ofpytest
even if the tests pass.Justification
Currently, all files generated at test time are stored in
tests/test_output/
for the duration of the test run and deleted in case all tests pass, kept if at least one test failed. In some cases, anyhow, it could be useful to keep said files even when tests pass. For example, when developing one feature and implementing the corresponding tests, it can be useful to look at output files. The current workaround is to make a test fail intentionally, but I think developers may want a programmatic way of enabling such behavior.Implementation Strategy
I would suggest to add an(other) environment variable to control whether test files should be kept, and check its value in the following function:
where I underlined the suggest change.
The text was updated successfully, but these errors were encountered: