Conversation
thomhurst
commented
Jan 16, 2026
SummaryImproves error messages for generic tests and fixes detection of class-level data sources on generic types. Critical IssuesNone found ✅ Suggestions1. Source Generator Change May Need Dual-Mode VerificationThe source generator now detects class-level data sources on generic types via the varhasClassDataSources=testMethod.IsGenericType&&testMethod.TypeSymbol.GetAttributesIncludingBaseTypes().Any(a =>DataSourceAttributeHelper.IsDataSourceAttribute(a.AttributeClass));Question: Does the reflection-based test discovery in The change appears to fix a bug where generic classes with class-level data sources weren't being detected properly. If this is a bug fix, the reflection path may need the same fix, or we should verify it already handles this case. Reference: 2. Snapshot TestingSince the source generator output has changed (new code path for dotnet test TUnit.Core.SourceGenerator.TestsIf snapshots changed, commit the Reference: 3. Minor: InterceptorsNamespaces ChangeThe change to This seems unrelated to the PR's stated purpose (improving generic test error messages). Is this an incidental fix for a build issue, or should it be in a separate commit? Verdict💬 COMMENT - Excellent error message improvements! Just want to verify dual-mode compatibility and snapshot testing. |
Uh oh!
There was an error while loading. Please reload this page.
This pull request improves generic test support and error messaging in the test engine and source generator