Skip to content

Commit 0149266

Browse files
committed
Configure pytest to capture test output
By default, pytest captures all output from the code during test execution. For unknown reasons, the creator of the original pytest configuration file which was reused for this project decided to disable that behavior. This resulted in any output from the code under test being shown in the test logs, making them very difficult to read and interpret. That configuration is hereby removed. After this change, script output from successful test runs will not be shown in the test logs. Since the output might be useful for troubleshooting test failures, it will be shown when a test fails, in a special section of the logs.
1 parent c353809 commit 0149266

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pytest.ini

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ filterwarnings =
55
ignore::DeprecationWarning
66
ignore::ResourceWarning
77

8-
# --capture=no - disable per-test capture
98
# --tb=long sets the length of the traceback in case of failures
10-
addopts = --capture=no --tb=long --verbose
9+
addopts = --tb=long --verbose
1110
pythonpath = reportsizedeltas

0 commit comments

Comments
 (0)