Files
ivatar/scripts/run_tests_with_ot.sh
Oliver Falk eeeb8a4f3a Simplify test scripts and move run_tests_local.sh to scripts/
- Move run_tests_local.sh to scripts/ directory for consistency
- Remove explicit test module listing from all test scripts
- Let Django auto-discover all tests instead of maintaining explicit lists
- Update README.md to reference new script location
- Simplify scripts/run_tests_with_coverage.py to use auto-discovery
- Reduce maintenance burden by eliminating duplicate test module lists
2025-10-16 18:00:17 +02:00

21 lines
520 B
Bash
Executable File

#!/bin/bash
# Run tests with OpenTelemetry enabled
# This is used in CI to test OpenTelemetry functionality
set -e
echo "Running tests with OpenTelemetry enabled..."
echo "=========================================="
# Enable OpenTelemetry
export ENABLE_OPENTELEMETRY=true
export OTEL_ENABLED=true
export OTEL_SERVICE_NAME=ivatar-test
export OTEL_ENVIRONMENT=test
# Run Django tests (Django will auto-discover all tests)
python3 manage.py test -v2
echo ""
echo "Tests completed successfully (OpenTelemetry enabled)"