mirror of
https://github.com/zulip/zulip.git
synced 2025-10-25 09:03:57 +00:00
tests: Add extra console output detection in test-backend output.
This commit adds automatic detection of extra output (other than printed by testing library or tools) in stderr and stdout by code under test test-backend when it is run with flag --ban-console-output. It also prints the test that produced the extra console output. Fixes: #1587.
This commit is contained in:
@@ -56,6 +56,9 @@ if "RUNNING_OPENAPI_CURL_TEST" in os.environ:
|
||||
if "GENERATE_STRIPE_FIXTURES" in os.environ:
|
||||
GENERATE_STRIPE_FIXTURES = True
|
||||
|
||||
if "BAN_CONSOLE_OUTPUT" in os.environ:
|
||||
BAN_CONSOLE_OUTPUT = True
|
||||
|
||||
# Decrease the get_updates timeout to 1 second.
|
||||
# This allows CasperJS to proceed quickly to the next test step.
|
||||
POLL_TIMEOUT = 1000
|
||||
|
||||
Reference in New Issue
Block a user