Add integration tests for EF Core data access layer #66
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
in progress
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
joezombie/castr#66
Loading…
Reference in a new issue
No description provided.
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?
Parent Epic
Part of #58 - Migrate to Entity Framework Core
Description
Add comprehensive integration tests for the new EF Core data access layer to ensure reliability across all supported database providers.
Test Project Setup
Create a new test project:
Test Categories
1. Repository Unit Tests (In-Memory)
Fast tests using EF Core InMemory provider:
2. Provider Integration Tests (Testcontainers)
Real database tests using Docker containers:
3. Migration Tests
Verify migrations work on all providers:
4. Data Migration Tests
Test legacy data migration:
Test Coverage Goals
CI/CD Integration
Add to GitHub Actions:
File Structure
Tasks
Acceptance Criteria
Completed: Added 21 integration tests for EF Core repositories covering all CRUD operations, edge cases (non-existent records, duplicates), timestamp handling, and query filtering. Test coverage at 79.5% line, 70.48% branch, 86.33% method.