Repository navigation
refactor!: discover the test framework adapter only from the registry - #1066
Merged
Merged
Conversation
Contributor
Test Results 7 files - 43 7 suites - 43 1m 40s ⏱️ - 8m 58s Results for commit 12a43c9. ± Comparison against base commit f2e2904. This pull request removes 19364 and adds 126 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
vbreuss
force-pushed
the
refactor/retire-adapter-scan
branch
from
September 13, 2026 13:37
4e4067f to
12a43c9
Compare
Scanning every loaded assembly was the last reflection on the initialization path: the candidate types are instantiated via `Activator.CreateInstance`, which trimming and Native AOT cannot preserve. Target frameworks without `ModuleInitializerAttribute` keep scanning, because the generated adapter cannot register itself there, and they can neither be trimmed nor published with Native AOT. The `aweXpect` pin moves to the pre-release whose generator emits the registration, so `aweXpect.Core.Tests` compiles outside `Debug` again and the build no longer needs the `CoreOnly` scope. BREAKING CHANGE: a hand-written `ITestFrameworkAdapter` is no longer discovered on net8.0 or later and has to be registered with `TestFrameworkRegistry.Register`.
vbreuss
force-pushed
the
refactor/retire-adapter-scan
branch
from
September 13, 2026 14:34
12a43c9 to
63b3d3c
Compare
vbreuss
enabled auto-merge (squash)
September 13, 2026 14:37
|
Contributor
👽 Mutation ResultsaweXpectDetails
The final mutation score is NaN%Coverage Thresholds: high:80 low:60 break:0aweXpect.CoreDetails
The final mutation score is 87.50%Coverage Thresholds: high:80 low:60 break:0 |
Contributor
🚀 Benchmark ResultsDetails
|
github-actions Bot
added a commit
that referenced
this pull request
Sep 13, 2026
…adapter only from the registry (#1066) by Valentin Breuß
github-actions Bot
added a commit
that referenced
this pull request
Sep 13, 2026
…adapter only from the registry (#1066) by Valentin Breuß
This was referenced Oct 12, 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.



Scanning every loaded assembly was the last reflection on the initialization path: the candidate types are instantiated via
Activator.CreateInstance, which trimming and Native AOT cannot preserve.Target frameworks without
ModuleInitializerAttributekeep scanning, because the generated adapter cannot register itself there, and they can neither be trimmed nor published with Native AOT.The
aweXpectpin moves to the pre-release whose generator emits the registration, soaweXpect.Core.Testscompiles outsideDebugagain and the build no longer needs theCoreOnlyscope.BREAKING CHANGE:
a hand-written
ITestFrameworkAdapteris no longer discovered on net8.0 or later and has to be registered withTestFrameworkRegistry.Register.