Enhancement: Complete BDD Scenario Isolation with 2-Layer Approach #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Implement complete scenario isolation for BDD tests using the 2-layer approach documented in ADR 0025.
Current Problem
PostgreSQL schema-per-scenario isolation only handles database tables. In-memory application state (user stores, caches, JWT secret managers) persists across scenarios because they are stored in the shared sharedServer Go instance. This causes test pollution where:
Solution: Enhanced 2-Layer Isolation
See ADR 0025 for complete analysis.
Layer 1: Database Isolation (Partially Implemented)
Layer 2: In-Memory State Isolation (TODO)
Cache Strategy (for future)
When caches are added (Redis, Memcached, in-process):
Acceptance Criteria
Related