Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Outline

PatchNotes.Tests

Test suite for the PatchNotes backend.

Overview

This project contains unit and integration tests for the API, data layer, and sync service using xUnit. Currently 368 tests.

Running Tests

dotnet test

Or from the solution root:

dotnet test PatchNotes.slnx

With Coverage

dotnet test --collect:"XPlat Code Coverage"

Test Categories

  • 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)

Test Infrastructure

  • 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

Dependencies

  • xUnit
  • FluentAssertions
  • Moq
  • Microsoft.AspNetCore.Mvc.Testing
  • Microsoft.EntityFrameworkCore.Sqlite
Morty Proxy This is a proxified and sanitized view of the page, visit original site.