Test suite for the PatchNotes backend.
This project contains unit and integration tests for the API, data layer, and sync service using xUnit. Currently 368 tests.
dotnet testOr from the solution root:
dotnet test PatchNotes.slnxdotnet test --collect:"XPlat Code Coverage"- API Tests - Integration tests for REST endpoints (
PackagesApiTests,ReleasesApiTests,FeedApiTests,WatchlistApiTests,EmailPreferencesTests) - Unit Tests - Entity and business logic tests (
PackageTests,ReleaseTests,VersionParserTests,DefaultWatchlistOptionsTests) - Service Tests - Sync and summary service tests (
SyncServiceTests,SummaryGenerationServiceTests,VersionGroupingServiceTests) - Client Tests - GitHub client and URL parsing tests (
GitHubClientTests,GitHubUrlParserTests,ChangelogResolverTests) - User Tests - User and watchlist tests (
UserWatchlistTests)
- PatchNotesApiFixture - WebApplicationFactory setup for API integration tests
- SQLite - Uses EF Core SQLite provider for test isolation
- Moq - Mocking framework for unit tests
- FluentAssertions - Readable assertion syntax
- xUnit
- FluentAssertions
- Moq
- Microsoft.AspNetCore.Mvc.Testing
- Microsoft.EntityFrameworkCore.Sqlite