High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: preserve test counters across sourced files
Boschc9bcba344d8e
diff --git a/tests/e2e/scenarios/common.sh b/tests/e2e/scenarios/common.shindex 31ae72f8..073afdd0 100755--- a/tests/e2e/scenarios/common.sh+++ b/tests/e2e/scenarios/common.sh@@ -17,17 +17,20 @@ PINCHTAB_URL="${PINCHTAB_URL:-http://localhost:9999}"FIXTURES_URL="${FIXTURES_URL:-http://localhost:8080}"RESULTS_DIR="${RESULTS_DIR:-/results}"-# Test tracking-CURRENT_TEST=""-TESTS_PASSED=0-TESTS_FAILED=0-ASSERTIONS_PASSED=0-ASSERTIONS_FAILED=0+# Test tracking (only initialize if not already set)+CURRENT_TEST="${CURRENT_TEST:-}"+TESTS_PASSED="${TESTS_PASSED:-0}"+TESTS_FAILED="${TESTS_FAILED:-0}"+ASSERTIONS_PASSED="${ASSERTIONS_PASSED:-0}"+ASSERTIONS_FAILED="${ASSERTIONS_FAILED:-0}"# Test timing (using seconds, Alpine doesn't support ms)-TEST_START_TIME=0-TEST_START_NS=0-TEST_RESULTS=()+TEST_START_TIME="${TEST_START_TIME:-0}"+TEST_START_NS="${TEST_START_NS:-0}"+if [ -z "${TEST_RESULTS_INIT:-}" ]; then+ TEST_RESULTS=()+ TEST_RESULTS_INIT=1+fi# Get time in milliseconds (cross-platform)get_time_ms() {