Re-introduce Desktop integration tests#16017
Open
JunielKatarn wants to merge 55 commits intomicrosoft:mainfrom
Open
Re-introduce Desktop integration tests#16017JunielKatarn wants to merge 55 commits intomicrosoft:mainfrom
JunielKatarn wants to merge 55 commits intomicrosoft:mainfrom
Conversation
The test DLL is loaded by testhost.exe, which knows nothing about the DLL's WinRT classes. The DLL has an embedded manifest (resource ID 2) that registers activatable WinRT classes (like ReactNativeHost). The code called CreateActCtxW to load that manifest and ActivateActCtx to push it onto the thread's activation context stack — so that RoGetActivationFactory could resolve those WinRT types at runtime.
Time limits will be enforceb by CI tasks.
JunielKatarn
commented
Apr 21, 2026
| DllCanUnloadNow = WINRT_CanUnloadNow PRIVATE | ||
| DllGetActivationFactory = WINRT_GetActivationFactory PRIVATE | ||
|
|
||
| ?GetNamespace@ReactPropertyBagHelper@ReactNative@Microsoft@winrt@@SA?AUIReactPropertyNamespace@234@AEBUhstring@param@4@@Z |
Contributor
Author
There was a problem hiding this comment.
TODO: Delete before merging.
JunielKatarn
commented
Apr 21, 2026
JunielKatarn
commented
Apr 21, 2026
vmoroz
reviewed
Apr 21, 2026
| @@ -0,0 +1,38 @@ | |||
| # Port RCTTestModule to React Native Windows TurboModule | |||
vmoroz
approved these changes
Apr 21, 2026
Performance Test ResultsBranch: ✅ Passed161 scenario(s) across 28 suite(s) — no regressionsSectionList
FlatList
TouchableOpacity
ScrollView
TouchableHighlight
Pressable
Modal
Image
ActivityIndicator
Switch
Button
TextInput
View
Text
SectionList.native-perf-test.ts
FlatList.native-perf-test.ts
TouchableHighlight.native-perf-test.ts
TouchableOpacity.native-perf-test.ts
Pressable.native-perf-test.ts
ScrollView.native-perf-test.ts
ActivityIndicator.native-perf-test.ts
TextInput.native-perf-test.ts
Switch.native-perf-test.ts
Button.native-perf-test.ts
Modal.native-perf-test.ts
Image.native-perf-test.ts
View.native-perf-test.ts
Text.native-perf-test.ts
|
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.
Description
Introduce JavaScript-driven integration tests for the Desktop DLL (
react-native-win32.dll).They are partially based on Facebook React Native's RNTesterIntegrationTests, but are new architecture-compliant.
Type of Change
Why
#15371 Removed necessary tests for the Desktop DLL coverage, bug investigation and experimentation.
What
Added updated test infrastructure (compliant with the bridgeless architecture) for the RNTesterIntegrationTest harness.
It supports headless (non-GUI) module consumption in JavaScript delivered by React Native's Metro bundler.
Note: All GUI functionality is stubbed, which added to the size and file count in this PR.
See added type diagram:

Extra
HermesPackageNameMSBuild property. This allows using the "fat" NuGet package which includes PDBs.Testing
Defined test class
RNTesterHeadlessTestsand a minimalDummyTestcase.Remaining tests deleted by #15371 will be restored in subsequent PRs.
Microsoft Reviewers: Open in CodeFlow