test-abp-applications
Installation
SKILL.md
Testing ABP Applications
ABP integration tests run the real application (DI, unit of work, repositories, EF Core/Mongo mapping) — you don't mock the infrastructure. This is the recommended default for testing application services, domain services, and repositories.
When to Use
- Writing integration tests for application services, domain services, or repositories.
- Resolving real services in a test and asserting against real DB behavior.
- Controlling the unit of work when touching a repository/
DbContextdirectly. - Seeding data for tests, or faking the current user/tenant to drive code paths.
- Verifying that
[Authorize(PermissionName)]actually denies an application-service call. - Proving commit/rollback behavior without getting a false positive from an unsaved entity.
- Sharing application tests across EF Core and MongoDB while keeping provider-specific query tests separate.