Repository navigation
Support comments in testconfig on .NET Framework - #10144
Conversation
Add opt-in comment handling to the vendored Jsonite reader and enable it only for testconfig parsing, matching the System.Text.Json path while keeping server JSON strict. Co-authored-by: Copilot App <[email protected]> Copilot-Session: b4812bf6-4b85-4c92-a153-a3b4c038b6aa
There was a problem hiding this comment.
Pull request overview
Adds opt-in comment parsing to the vendored Jsonite reader, enabling comments in .NET Framework testconfig.json while preserving strict defaults elsewhere.
Changes:
- Supports
//and/* ... */comments throughJsonSettings. - Enables comments for the legacy configuration parser.
- Adds coverage for valid, invalid, and edge-case comments.
Show a summary per file
| File | Description |
|---|---|
JsoniteTests.cs |
Tests opt-in behavior and unterminated comments. |
ConfigurationManagerTests.cs |
Tests commented configuration files and edge cases. |
JsonTypes.cs |
Adds the AllowComments setting. |
JsonReader.cs |
Implements comment skipping during parsing. |
JsonConfigurationFileParser.netstandard.cs |
Enables comments for the legacy parser. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 0
- Review effort level: Medium
🧪 Test quality grade — PR #10144
Note: Changes in This advisory comment was generated automatically. Grades are heuristic Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
|
/backport to rel/4.3 |
|
Started backporting to rel/4.3: https://github.com/microsoft/testfx/actions/runs/29959744160 |
…0144 (backport to rel/4.3) (#10148) Co-authored-by: Amaury Levé <[email protected]>
Summary
//and/* ... */comment skipping to the vendored Jsonite readertestconfig.jsonparser, keeping server JSON strict by defaultJsonite upstream is archived and does not provide a newer version with comment support.
Fixes #10137
Testing
Microsoft.Testing.Platform.UnitTestsonnet462: 1,443 passedMicrosoft.Testing.Platform.UnitTestsonnet8.0: 1,462 passed