-
-
Notifications
You must be signed in to change notification settings - Fork 106
Fix TestContext.Configuration #2796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Initialize TestContext.Configuration from Microsoft.Testing.Platform's IConfiguration service - Create SkipIfNotDynamicCodeSupportedAttribute for conditional test skipping based on AOT mode - Update ConfigurationTests to skip only in AOT mode, allowing tests to run in normal and reflection modes This fixes the issue where TestContext.Configuration was always null even when a config file was provided. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
|
Claude finished @thomhurst's task —— View job PR Review: Fix TestContext.ConfigurationTodo List:
Review Findings✅ Code Quality & Best PracticesSkipIfNotDynamicCodeSupportedAttribute.cs:
TUnitServiceProvider.cs:
ConfigurationTests.cs:
🐛 Potential Issues
⚡ Performance Considerations
🔒 Security Concerns
🧪 Test Coverage
🎯 Recommendations
📋 SummaryThis is a solid implementation that addresses the TestContext.Configuration initialization issue. The code follows good practices, has appropriate test coverage, and includes thoughtful AOT/dynamic code support handling. The fix ensures configuration is available early in the test lifecycle. Recommendation: ✅ Approve - This PR successfully fixes the configuration initialization with minimal risk and good design. |
|
Claude finished @thomhurst's task —— View job PR Review: Fix TestContext.ConfigurationTodo List:
Review Findings✅ Code Quality & Best PracticesSkipIfNotDynamicCodeSupportedAttribute.cs:
TUnitServiceProvider.cs:
ConfigurationTests.cs:
🐛 Potential Issues
⚡ Performance Considerations
🔒 Security Concerns
🧪 Test Coverage
🎯 Recommendations
📋 SummaryThis is a solid implementation that addresses the TestContext.Configuration initialization issue. The code follows good practices, has appropriate test coverage, and includes thoughtful AOT/dynamic code support handling. The fix ensures configuration is available early in the test lifecycle. Recommendation: ✅ Approve - This PR successfully fixes the configuration initialization with minimal risk and good design. |
Fixes #2794