mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-16 04:58:01 +00:00
- Replace pytest with python3 manage.py test in both scripts - Remove pytest.ini configuration file - Maintain consistency with existing testing approach - Include all test modules explicitly for better control
34 lines
902 B
Bash
Executable File
34 lines
902 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 including OpenTelemetry-specific tests
|
|
python3 manage.py test \
|
|
ivatar.ivataraccount.test_auth \
|
|
ivatar.ivataraccount.test_views \
|
|
ivatar.ivataraccount.test_views_bluesky \
|
|
ivatar.test_auxiliary \
|
|
ivatar.test_file_security \
|
|
ivatar.test_opentelemetry \
|
|
ivatar.test_static_pages \
|
|
ivatar.test_utils \
|
|
ivatar.test_views \
|
|
ivatar.test_views_stats \
|
|
ivatar.tools.test_views \
|
|
ivatar.test_wsgi \
|
|
-v2
|
|
|
|
echo ""
|
|
echo "Tests completed successfully (OpenTelemetry enabled)"
|