Draft
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request enables CoreCLR runtime testing in the WASM Build Tests suite by categorizing tests and filtering them appropriately based on the runtime flavor. The PR removes a CoreCLR-specific test asset that is no longer needed and ensures that tests requiring native builds, Mono-specific features, or workload installations are properly excluded when running with CoreCLR.
Changes:
- Removed the WasmBrowserRunMainOnly test asset and test class, which was specifically created for CoreCLR but is no longer needed
- Added TestCategory attributes to categorize tests as "native" (requiring AOT/native builds), "mono" (Mono-specific features), or "workload" (requiring workload installation)
- Updated test filtering logic in Wasm.Build.Tests.csproj to exclude native/mono/workload tests when running with CoreCLR runtime
- Modified WasmSdkBasedProjectProvider to expect diagnostics files for CoreCLR builds
Reviewed changes
Copilot reviewed 46 out of 46 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/mono/wasm/testassets/WasmBrowserRunMainOnly/* | Deleted entire test asset directory (6 files) that was specific to CoreCLR testing |
| src/mono/wasm/Wasm.Build.Tests/WasmBrowserRunMainOnly.cs | Deleted CoreCLR-specific test class |
| src/mono/wasm/Wasm.Build.Tests/BrowserStructures/TestAsset.cs | Removed WasmBrowserRunMainOnly test asset reference |
| src/mono/wasm/Wasm.Build.Tests/Wasm.Build.Tests.csproj | Updated XUnit trait filtering to exclude native/mono/workload categories for CoreCLR |
| src/mono/wasm/Wasm.Build.Tests/WasmSdkBasedProjectProvider.cs | Added logic to expect diagnostics.js files for CoreCLR builds |
| src/mono/wasm/Wasm.Build.Tests/WorkloadTests.cs | Added "native" category to class-level TestCategory |
| src/mono/wasm/Wasm.Build.Tests/WasmBuildAppTest.cs | Added "native" category to AOT test methods |
| src/mono/wasm/Wasm.Build.Tests/WasmSIMDTests.cs | Added "native" category to PublishSIMD_AOT test |
| src/mono/wasm/Wasm.Build.Tests/WasmNativeDefaultsTests.cs | Added "native" category to class-level TestCategory |
| src/mono/wasm/Wasm.Build.Tests/Templates/WasmTemplateTests.cs | Added "workload" and "native" categories to various template tests |
| src/mono/wasm/Wasm.Build.Tests/Templates/NativeBuildTests.cs | Added "native" category to class-level TestCategory |
| src/mono/wasm/Wasm.Build.Tests/SatelliteAssembliesTests.cs | Added "native" category to resource assembly tests |
| src/mono/wasm/Wasm.Build.Tests/PInvokeTableGeneratorTests.cs | Added "native" category to class-level TestCategory |
| src/mono/wasm/Wasm.Build.Tests/NativeRebuildTests/* | Added "native" category to all native rebuild test classes (5 files) |
| src/mono/wasm/Wasm.Build.Tests/NativeLibraryTests.cs | Added "native" category to class-level TestCategory |
| src/mono/wasm/Wasm.Build.Tests/NativeBuildTests.cs | Added "native" category to class-level TestCategory |
| src/mono/wasm/Wasm.Build.Tests/ModuleConfigTests.cs | Split SymbolMapFileEmitted test into two separate tests, marking only the emitting case as "native" |
| src/mono/wasm/Wasm.Build.Tests/MemoryTests.cs | Added "native" category to class-level TestCategory |
| src/mono/wasm/Wasm.Build.Tests/MainWithArgsTests.cs | Added "native" category to main-with-args tests |
| src/mono/wasm/Wasm.Build.Tests/InvariantTimezoneTests.cs | Added "native" category to invariant timezone tests |
| src/mono/wasm/Wasm.Build.Tests/InvariantGlobalizationTests.cs | Added "native" category to invariant globalization tests |
| src/mono/wasm/Wasm.Build.Tests/InterpPgoTests.cs | Added "mono" category to class-level TestCategory |
| src/mono/wasm/Wasm.Build.Tests/IcuTests.cs | Added "native" and "workload" categories to ICU tests |
| src/mono/wasm/Wasm.Build.Tests/IcuShardingTests*.cs | Added "native" category to ICU sharding tests (2 files) |
| src/mono/wasm/Wasm.Build.Tests/DllImportTests.cs | Added "native" category to class-level TestCategory |
| src/mono/wasm/Wasm.Build.Tests/DiagnosticsTests.cs | Added "mono" category to class-level TestCategory |
| src/mono/wasm/Wasm.Build.Tests/BuildPublishTests.cs | Added "native" category to AOT publish tests |
| src/mono/wasm/Wasm.Build.Tests/Blazor/* | Added "native" and "mono" categories to various Blazor tests (8 files) |
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.
WasmBrowserRunMainOnly[TestCategory("native")]as necessarydotnet.diagnostics.json CoreCLRnativetrait for CoreCLR run