Commit Graph

3 Commits

Author SHA1 Message Date
98596f42d7 feat: add schema-per-scenario isolation with BDD_SCHEMA_ISOLATION env var
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 9s
CI/CD Pipeline / CI Pipeline (push) Failing after 4m20s
- Add BDD_SCHEMA_ISOLATION env var to enable PostgreSQL schema-per-scenario isolation
- Generate unique schema names: test_{sha256(feature:scenario)[:8]}
- Implement SetupScenarioSchema() and TeardownScenarioSchema() with search_path handling
- Add CASCADE drop to clean up all scenario-created DB objects
- Add isSchemaIsolationEnabled() helpers to both suite.go and server.go
- Skip table clearing when schema isolation is active (schema drop replaces it)
- Update validate-test-suite.sh to set FIXED_TEST_PORT and BDD_SCHEMA_ISOLATION
- Add isCleanupLoggingEnabled() for optional CLEANUP: prefixed logs
- Add ADR 0025 documenting all isolation strategies and decision rationale

Activation:
  BDD_SCHEMA_ISOLATION=true - Enable schema-per-scenario isolation
  BDD_ENABLE_CLEANUP_LOGS=true - Enable verbose cleanup/isolation logging

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-04-10 23:07:50 +02:00
b09aeadd72 🧪 test: enhance validation script with separate unit/BDD tests and better failure parsing
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 10s
CI/CD Pipeline / CI Pipeline (push) Failing after 4m11s
2026-04-10 15:25:54 +02:00
230ee699e4 🧪 test: add comprehensive test validation script with failure metrics
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 9s
CI/CD Pipeline / CI Pipeline (push) Failing after 4m3s
2026-04-10 14:41:05 +02:00