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 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
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