测试
io.github.recyclarr/recyclarr/testing
在 tests/** 下任何位置编写、编辑、重构或调试测试(单元、集成或端到端)时使用;编写 NUnit 4 测试类(*Test、*IntegrationTest);使用 NSubstitute mock、AutoFixture 的 [AutoMockData]/[InlineAutoMockData]/[Frozen],或 AwesomeAssertions(不是 FluentAssertions);涉及 CliIntegrationFixture、IntegrationTestFixture、MockFileSystem、TestableLogger、NUnitAnsiConsole 或 New* 工厂辅助类;在 tests/Recyclarr.Cli.IntegrationTests.E2E/ 下添加或更新 E2E 夹具;编辑 Fixtures/recyclarr.yml、metadata.json、cf/、cf-groups/、quality-profiles/ 夹具目录;运行 Run-E2ETests.ps1 或 scripts/coverage.py;排查不稳定测试、覆盖率缺口或 Testcontainers 设置。触发短语如“write a test”“fix this test”“improve coverage”“add an E2E case”“mock this dependency”,或任何对 *.Tests.csproj 及 tests/** 下文件的编辑