Add xUnit test infrastructure and deterministic T01–T08 coverage while preserving IL harness behavior - #1
Draft
marcialwushu with Copilot wants to merge 2 commits into
Draft
marcialwushu with Copilot wants to merge 2 commits into
marcialwushu with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: marcialwushu <16365313+marcialwushu@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add xUnit test coverage for components and contracts
Add xUnit test infrastructure and deterministic T01–T08 coverage while preserving IL harness behavior
Sep 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces xUnit-based unit test infrastructure across the core test projects and adds deterministic coverage for the contracts/components delivered in T01–T08. It keeps the existing IL fixture harness as the integration validation path, ensuring static inspection does not execute fixture methods.
Test infrastructure (xUnit + discoverability)
Microsoft.NET.Test.Sdk,xunit,xunit.runner.visualstudio, andcoverlet.collectorto:ClrLens.Tests.UnitClrLens.Tests.ILClrLens.Tests.OptimizationClrLens.Tests.Regressiondotnet testdiscovery.ClrLens.Tests.Benchmarksseparate from unit-test runner setup.Unit test suite for T01–T08 (deterministic / order-independent)
tests/ClrLens.Tests.Unitfor:IL and fixture-focused tests
tests/ClrLens.Tests.IL/*for fixture manifest, assembly ingestion (valid/invalid), CIL decode, stack validation, and exception regions (T03–T05).Harness preservation and integration alignment
tests/ClrLens.Tests.IL/Program.csinto reusable harness logic (FixtureHarness.RunAsync) and wrapped it with xUnit integration coverage.Regression scaffolding for report compatibility
FixtureRegressionTestsandReportCompatibilityTestsinClrLens.Tests.Regressionto lock schema/serialization/validation behavior and support future optimization-phase test expansion (T16–T18).