Currently, the Blazor integration tests require spinning up all docker containers including OIDC authentication services. This makes the test setup complex and slow.
Proposed Enhancements:
Editable Static Test Data
Implement an in-memory data store or mock repository pattern
Allow CRUD operations (add/update/remove) on test data during test execution
Maintain test data state between test steps
Ensure data isolation between test scenarios
OIDC Authentication Bypass
Create a test authentication mechanism that bypasses the normal OIDC flow
Allow tests to run without spinning up non-UI docker containers
Provide a way to set test user context directly
Maintain security boundaries while simplifying test setup
Benefits:
Faster test execution
Simpler test environment setup
Reduced infrastructure requirements for local development
More flexible test data management
Note this must still maintain the mediator pattern as this in how the app will function once I am past this development phase
Currently, the Blazor integration tests require spinning up all docker containers including OIDC authentication services. This makes the test setup complex and slow.
Proposed Enhancements:
Editable Static Test Data
Implement an in-memory data store or mock repository pattern
Allow CRUD operations (add/update/remove) on test data during test execution
Maintain test data state between test steps
Ensure data isolation between test scenarios
OIDC Authentication Bypass
Create a test authentication mechanism that bypasses the normal OIDC flow
Allow tests to run without spinning up non-UI docker containers
Provide a way to set test user context directly
Maintain security boundaries while simplifying test setup
Benefits:
Faster test execution
Simpler test environment setup
Reduced infrastructure requirements for local development
More flexible test data management
Note this must still maintain the mediator pattern as this in how the app will function once I am past this development phase