"feat: Added debug server and related components for improved development experience"
This commit is contained in:
81
infrastructure/environments/test.env
Normal file
81
infrastructure/environments/test.env
Normal file
@@ -0,0 +1,81 @@
|
||||
# 🧪 MYP Testumgebung
|
||||
# Konfigurationsdatei für automatisierte Tests
|
||||
|
||||
# === Anwendungseinstellungen ===
|
||||
NODE_ENV=test
|
||||
FLASK_ENV=testing
|
||||
FLASK_DEBUG=false
|
||||
NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
# === Datenbankeinstellungen ===
|
||||
DATABASE_PATH=:memory:
|
||||
DATABASE_URL=sqlite:///:memory:
|
||||
TEST_DATABASE_PATH=instance/test.db
|
||||
|
||||
# === Sicherheitseinstellungen ===
|
||||
SECRET_KEY=test-secret-key-for-testing-only
|
||||
JWT_SECRET=test-jwt-secret
|
||||
SESSION_SECRET=test-session-secret
|
||||
|
||||
# === API-Konfiguration ===
|
||||
BACKEND_URL=http://backend:5000
|
||||
FRONTEND_URL=http://frontend:3000
|
||||
API_BASE_URL=http://localhost:5000/api
|
||||
NEXT_PUBLIC_API_URL=http://localhost:5000/api
|
||||
|
||||
# === Test-Drucker-Konfiguration ===
|
||||
# Mock-Drucker für Tests
|
||||
PRINTERS={"Test Drucker 1": {"ip": "127.0.0.1", "model": "Mock UltiMaker"}, "Test Drucker 2": {"ip": "127.0.0.2", "model": "Mock UltiMaker"}}
|
||||
|
||||
# === TAPO Mock Einstellungen ===
|
||||
TAPO_USERNAME=test@example.com
|
||||
TAPO_PASSWORD=test-password
|
||||
|
||||
# === Logging-Konfiguration ===
|
||||
LOG_LEVEL=WARNING
|
||||
LOG_FILE=logs/test.log
|
||||
ENABLE_SQL_LOGGING=false
|
||||
|
||||
# === Test-Features ===
|
||||
ENABLE_DEBUG_TOOLBAR=false
|
||||
ENABLE_HOT_RELOAD=false
|
||||
MOCK_EXTERNAL_SERVICES=true
|
||||
ENABLE_CORS=true
|
||||
|
||||
# === Test-Monitoring ===
|
||||
ENABLE_PROMETHEUS=false
|
||||
PROMETHEUS_PORT=9090
|
||||
GRAFANA_PORT=3001
|
||||
|
||||
# === Docker-Test-Konfiguration ===
|
||||
COMPOSE_PROJECT_NAME=myp-test
|
||||
DOCKER_BUILDKIT=1
|
||||
COMPOSE_DOCKER_CLI_BUILD=1
|
||||
|
||||
# === Test-Netzwerk-Einstellungen ===
|
||||
BACKEND_PORT=5000
|
||||
FRONTEND_PORT=3000
|
||||
PROXY_HTTP_PORT=80
|
||||
PROXY_HTTPS_PORT=443
|
||||
|
||||
# === Test-Optimierungen ===
|
||||
ENABLE_LIVE_RELOAD=false
|
||||
WATCH_FILES=false
|
||||
AUTO_RESTART=false
|
||||
|
||||
# === Test-spezifische Einstellungen ===
|
||||
TEST_TIMEOUT=30
|
||||
TEST_RETRY_COUNT=3
|
||||
ENABLE_TEST_FIXTURES=true
|
||||
RESET_DB_BETWEEN_TESTS=true
|
||||
|
||||
# === Geschwindigkeit-Optimierungen für Tests ===
|
||||
DISABLE_MIGRATIONS=true
|
||||
USE_FAST_HASH=true
|
||||
SKIP_SLOW_TESTS=false
|
||||
|
||||
# === Coverage und Reporting ===
|
||||
ENABLE_COVERAGE=true
|
||||
COVERAGE_THRESHOLD=80
|
||||
GENERATE_TEST_REPORTS=true
|
||||
TEST_REPORT_FORMAT=junit
|
||||
Reference in New Issue
Block a user