From ff4ec5f8b7929faf0f01294d9ca4a3ddd2cf9b18 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 16 Oct 2025 12:21:04 +0200 Subject: [PATCH] go full debug in pytest --- changedetectionio/run_basic_tests.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/changedetectionio/run_basic_tests.sh b/changedetectionio/run_basic_tests.sh index 2f179fda..eb0db6ec 100755 --- a/changedetectionio/run_basic_tests.sh +++ b/changedetectionio/run_basic_tests.sh @@ -15,7 +15,7 @@ find tests/test_*py -type f|while read test_name do echo "TEST RUNNING $test_name" # REMOVE_REQUESTS_OLD_SCREENSHOTS disabled so that we can write a screenshot and send it in test_notifications.py without a real browser - REMOVE_REQUESTS_OLD_SCREENSHOTS=false pytest $test_name + REMOVE_REQUESTS_OLD_SCREENSHOTS=false pytest -vv -s --maxfail=1 --tb=long $test_name done echo "RUNNING WITH BASE_URL SET" @@ -23,20 +23,20 @@ echo "RUNNING WITH BASE_URL SET" # Now re-run some tests with BASE_URL enabled # Re #65 - Ability to include a link back to the installation, in the notification. export BASE_URL="https://really-unique-domain.io" -REMOVE_REQUESTS_OLD_SCREENSHOTS=false pytest tests/test_notification.py +REMOVE_REQUESTS_OLD_SCREENSHOTS=false pytest -vv -s --maxfail=1 tests/test_notification.py # Re-run with HIDE_REFERER set - could affect login export HIDE_REFERER=True -pytest tests/test_access_control.py +pytest -vv -s --maxfail=1 tests/test_access_control.py # Re-run a few tests that will trigger brotli based storage export SNAPSHOT_BROTLI_COMPRESSION_THRESHOLD=5 -pytest tests/test_access_control.py +pytest -vv -s --maxfail=1 tests/test_access_control.py REMOVE_REQUESTS_OLD_SCREENSHOTS=false pytest tests/test_notification.py -pytest tests/test_backend.py -pytest tests/test_rss.py -pytest tests/test_unique_lines.py +pytest -vv -s --maxfail=1 tests/test_backend.py +pytest -vv -s --maxfail=1 tests/test_rss.py +pytest -vv -s --maxfail=1 tests/test_unique_lines.py # Try high concurrency FETCH_WORKERS=130 pytest tests/test_history_consistency.py -v -l