22# https://docs.coderabbit.ai/getting-started/configure-coderabbit
33
44# CodeRabbit Configuration
5- # Optimized for .NET 8 / ASP.NET Core Web API project
5+ # Optimized for .NET 10 / ASP.NET Core Web API project
66
77language : en-US
88early_access : true
@@ -80,16 +80,18 @@ reviews:
8080 - path : " test/**/*.cs"
8181 instructions : |
8282 - Tests should use xUnit, Moq, and FluentAssertions
83- - Verify test naming follows Given_When_Then pattern
83+ - Verify test naming follows the two-pattern convention (exactly 3 underscore-delimited segments):
84+ - Controller tests: {HttpMethod}_{Resource}_{Condition}_Returns{Outcome} (e.g. Get_Players_Existing_ReturnsPlayers)
85+ - Service/Validator tests: {MethodName}_{StateUnderTest}_{ExpectedBehavior} (e.g. RetrieveAsync_CacheMiss_QueriesRepositoryAndCachesResult)
8486 - Check that mocks are properly configured
8587 - Ensure async tests use Task return type
86- - Validate test data uses faker patterns
88+ - Validate test data uses PlayerFakes factory methods from test/Utilities/
8789 - Tests should use [Fact] and [Theory] attributes with [Trait("Category", "Unit")]
8890
8991 - path : " **/Dockerfile"
9092 instructions : |
9193 - Verify multi-stage builds are used
92- - Check that .NET 8 SDK and runtime versions match
94+ - Check that .NET 10 SDK and runtime versions match
9395 - Ensure non-root user is used for security
9496 - Validate HEALTHCHECK instruction is present
9597
@@ -101,7 +103,7 @@ reviews:
101103
102104 - path : " **/*.csproj"
103105 instructions : |
104- - Verify .NET 8 (net8 .0) target framework
106+ - Verify .NET 10 (net10 .0) target framework
105107 - Check that nullable reference types are enabled
106108 - Ensure package versions are up to date
107109 - Validate that ImplicitUsings is enabled
@@ -345,7 +347,9 @@ code_generation:
345347 - path : " test/**/*.cs"
346348 instructions : |
347349 - Use xUnit framework with [Fact] and [Theory] attributes
348- - Follow Given_When_Then naming pattern for test methods
350+ - Follow the two-pattern naming convention (exactly 3 underscore-delimited segments):
351+ - Controller tests: {HttpMethod}_{Resource}_{Condition}_Returns{Outcome}
352+ - Service/Validator tests: {MethodName}_{StateUnderTest}_{ExpectedBehavior}
349353 - Use [Trait("Category", "Unit")] attribute for all unit tests
350354 - Use Moq for mocking dependencies
351355 - Use FluentAssertions for readable assertions
0 commit comments