ABP Framework Testing Patterns
Implements standardized ABP integration and unit testing patterns for application services, domain services, and repositories.
This skill provides Claude with the domain-specific knowledge required to write and review tests for ABP Framework projects. It emphasizes the integration-over-unit test approach recommended by ABP, utilizing real services and in-memory SQLite databases for high-fidelity testing. It includes best practices for Arrange-Act-Assert (AAA) structures, data seeding via IDataSeedContributor, fluent assertions with Shouldly, and mocking external dependencies with NSubstitute. It also provides patterns for testing complex scenarios such as multi-tenancy, authorization, and unit of work management.
주요 기능
01Integration testing patterns for ABP application and domain services
020 GitHub stars
03Automated data seeding implementation using IDataSeedContributor
04Testing patterns for multi-tenancy and authorization overrides
05Mocking external dependencies with NSubstitute within ABP modules
06Fluent assertions configuration using the Shouldly library
사용 사례
01Writing comprehensive integration tests for new ABP application services
02Creating specialized test data seeders to ensure consistent and isolated testing environments
03Refactoring existing test suites to follow official ABP naming conventions and structures