Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eng/pipelines/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ extends:
eq(variables['wasmDarcDependenciesChanged'], true),
eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_tools_illink.containsChange'], true),
eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_wasm_coreclr_runtimetests.containsChange'], true),
eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_wasmbuildtests.containsChange'], true),
eq(variables['isRollingBuild'], true))

- template: /eng/pipelines/common/platform-matrix.yml
Expand Down
12 changes: 12 additions & 0 deletions eng/testing/scenarios/BuildWasmAppsJobsListCLR.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Wasm.Build.Tests.DebugLevelTests
Wasm.Build.Tests.EnvVariablesTests
Wasm.Build.Tests.FilesToIncludeInFileSystemTests
Wasm.Build.Tests.HttpTests
Wasm.Build.Tests.LazyLoadingTests
Wasm.Build.Tests.ModuleConfigTests
Wasm.Build.Tests.PreloadingTests
Wasm.Build.Tests.RebuildTests
Wasm.Build.Tests.SatelliteLoadingTests
Wasm.Build.Tests.WasmBuildAppTest
Wasm.Build.Tests.WasmRunOutOfAppBundleTests
Wasm.Build.Tests.WasmTemplateTests
5 changes: 3 additions & 2 deletions src/libraries/sendtohelix-browser.targets
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,13 @@
</ItemGroup>

<PropertyGroup Condition="'$(Scenario)' == 'BuildWasmApps'">
<BuildWasmAppsJobsList>$(RepositoryEngineeringDir)testing\scenarios\BuildWasmAppsJobsList.txt</BuildWasmAppsJobsList>
<BuildWasmAppsJobsList Condition="'$(RuntimeFlavor)' == 'Mono'">$(RepositoryEngineeringDir)testing\scenarios\BuildWasmAppsJobsList.txt</BuildWasmAppsJobsList>
<BuildWasmAppsJobsList Condition="'$(RuntimeFlavor)' == 'CoreCLR'">$(RepositoryEngineeringDir)testing\scenarios\BuildWasmAppsJobsListCLR.txt</BuildWasmAppsJobsList>
<_XUnitTraitArg Condition="'$(TestUsingWorkloads)' == 'true'">-notrait category=no-workload</_XUnitTraitArg>
<_XUnitTraitArg Condition="'$(TestUsingWorkloads)' != 'true'">-trait category=no-workload</_XUnitTraitArg>
<_XUnitTraitArg Condition="'$(WasmFingerprintAssets)' == 'false'">$(_XUnitTraitArg) -trait category=no-fingerprinting</_XUnitTraitArg>
<_XUnitTraitArg Condition="'$(WasmBundlerFriendlyBootConfig)' == 'true'">$(_XUnitTraitArg) -trait category=bundler-friendly</_XUnitTraitArg>
<_XUnitTraitArg Condition="'$(RuntimeFlavor)' == 'CoreCLR'">-trait category=$(RuntimeFlavor)</_XUnitTraitArg>
<_XUnitTraitArg Condition="'$(RuntimeFlavor)' == 'CoreCLR'">-notrait category=native -notrait category=mono -notrait category=workload</_XUnitTraitArg>
Comment on lines 133 to +140
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This introduces a new CoreCLR-specific jobs list file (BuildWasmAppsJobsListCLR.txt), but eng/pipelines/common/evaluate-default-paths.yml only references BuildWasmAppsJobsList.txt. As a result, future edits to the CoreCLR list may not trigger the intended WASM/BuildWasmApps pipeline subsets. Please add eng/testing/scenarios/BuildWasmAppsJobsListCLR.txt to the evaluated path sets alongside the existing Mono list.

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot implement the suggestion directly on this branch

</PropertyGroup>

<PropertyGroup>
Expand Down
11 changes: 9 additions & 2 deletions src/libraries/sendtohelix-wasm.targets
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,20 @@
<_BuildWasmAppsPayloadArchive>@(_WasmWorkItem)</_BuildWasmAppsPayloadArchive>
</PropertyGroup>

<ReadLinesFromFile File="$(BuildWasmAppsJobsList)" Condition="Exists($(BuildWasmAppsJobsList)) and '$(TestUsingWorkloads)' == 'true'">
<ReadLinesFromFile File="$(BuildWasmAppsJobsList)" Condition="Exists($(BuildWasmAppsJobsList))">
<Output TaskParameter="Lines" ItemName="BuildWasmApps_PerJobList" />
</ReadLinesFromFile>

<!-- for testing with workloads, we use separate items -->
<ItemGroup>
<HelixWorkItem Include="@(BuildWasmApps_PerJobList->'$(WorkItemPrefix)%(Identity)')" Condition="'$(TestUsingWorkloads)' == 'true' and '$(WasmFingerprintAssets)' == 'true' and '$(WasmBundlerFriendlyBootConfig)' == 'false'">
<HelixWorkItem Include="@(BuildWasmApps_PerJobList->'$(WorkItemPrefix)%(Identity)')" Condition="'$(RuntimeFlavor)' == 'Mono' and '$(TestUsingWorkloads)' == 'true' and '$(WasmFingerprintAssets)' == 'true' and '$(WasmBundlerFriendlyBootConfig)' == 'false'">
<PayloadArchive>$(_BuildWasmAppsPayloadArchive)</PayloadArchive>
<PreCommands>$(EnvVarCommand) &quot;HELIX_XUNIT_ARGS=-class %(Identity)&quot;</PreCommands>
<Command>$(HelixCommand)</Command>
<Timeout>$(_workItemTimeout)</Timeout>
</HelixWorkItem>

<HelixWorkItem Include="@(BuildWasmApps_PerJobList->'$(WorkItemPrefix)%(Identity)')" Condition="'$(RuntimeFlavor)' == 'CoreCLR' and '$(WasmFingerprintAssets)' == 'true' and '$(WasmBundlerFriendlyBootConfig)' == 'false'">
<PayloadArchive>$(_BuildWasmAppsPayloadArchive)</PayloadArchive>
<PreCommands>$(EnvVarCommand) &quot;HELIX_XUNIT_ARGS=-class %(Identity)&quot;</PreCommands>
<Command>$(HelixCommand)</Command>
Comment on lines +59 to 62
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new per-class CoreCLR work item condition relies on $(WasmFingerprintAssets) == 'true', but in CoreCLR BuildWasmApps this property may be empty (not explicitly set) even though fingerprinting defaults to enabled in the SDK/RunScriptTemplate. That would prevent these per-class items from being created, making BuildWasmAppsJobsListCLR.txt unused. Also, if WasmFingerprintAssets is set to true for CoreCLR in the future, ensure the existing fallback Wasm.Build.Tests work item (below) is suppressed to avoid running both the per-class items and the full suite.

Copilot uses AI. Check for mistakes.
Expand Down
3 changes: 3 additions & 0 deletions src/mono/wasm/Wasm.Build.Tests/Blazor/BuildPublishTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public void DefaultTemplate_NoAOT_WithWorkload(Configuration config, bool testUn

[Theory]
[MemberData(nameof(TestDataForDefaultTemplate_WithWorkload), parameters: new object[] { true })]
[TestCategory("native")]
public void DefaultTemplate_AOT_WithWorkload(Configuration config, bool testUnicode)
{
ProjectInfo info = CopyTestAsset(config, aot: false, TestAsset.BlazorBasicTestApp, "blz_aot", appendUnicodeToPath: testUnicode);
Expand Down Expand Up @@ -117,6 +118,7 @@ void AssertResourcesDlls(string basePath)
[Theory]
[InlineData("", true)] // Default case
[InlineData("false", false)] // the other case
[TestCategory("native")]
public async Task Test_WasmStripILAfterAOT(string stripILAfterAOT, bool expectILStripping)
{
Configuration config = Configuration.Release;
Expand All @@ -136,6 +138,7 @@ public async Task Test_WasmStripILAfterAOT(string stripILAfterAOT, bool expectIL

[Theory]
[InlineData(Configuration.Debug)]
[TestCategory("native")]
public void BlazorWasm_CannotAOT_InDebug(Configuration config)
{
ProjectInfo info = CopyTestAsset(
Expand Down
1 change: 1 addition & 0 deletions src/mono/wasm/Wasm.Build.Tests/Blazor/CleanTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Wasm.Build.Tests.Blazor;

[TestCategory("native")]
public class CleanTests : BlazorWasmTestBase
{
public CleanTests(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
1 change: 1 addition & 0 deletions src/mono/wasm/Wasm.Build.Tests/Blazor/DllImportTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

namespace Wasm.Build.Tests.Blazor;

[TestCategory("native")]
public class DllImportTests : BlazorWasmTestBase
{
public DllImportTests(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

namespace Wasm.Build.Tests.Blazor;

[TestCategory("mono")]
public class EventPipeDiagnosticsTests : BlazorWasmTestBase
{
private static readonly string uploadPattern = "^[a-zA-Z0-9_]+\\.nettrace$";
Expand Down
3 changes: 3 additions & 0 deletions src/mono/wasm/Wasm.Build.Tests/Blazor/MiscTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public MiscTests(ITestOutputHelper output, SharedBuildPerTestClassFixture buildC
[InlineData(Configuration.Release, true)]
[InlineData(Configuration.Release, false)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/103566")]
[TestCategory("native")]
public void NativeBuild_WithDeployOnBuild_UsedByVS(Configuration config, bool nativeRelink)
{
string extraProperties = config == Configuration.Debug
Expand Down Expand Up @@ -57,6 +58,7 @@ public void NativeBuild_WithDeployOnBuild_UsedByVS(Configuration config, bool na

[Theory]
[InlineData(Configuration.Release)]
[TestCategory("native")]
public void DefaultTemplate_AOT_InProjectFile(Configuration config)
{
string extraProperties = config == Configuration.Debug
Expand All @@ -77,6 +79,7 @@ public void DefaultTemplate_AOT_InProjectFile(Configuration config)
}

[Fact]
[TestCategory("native")]
public void BugRegression_60479_WithRazorClassLib()
{
Configuration config = Configuration.Release;
Expand Down
1 change: 1 addition & 0 deletions src/mono/wasm/Wasm.Build.Tests/Blazor/NativeRefTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

namespace Wasm.Build.Tests.Blazor;

[TestCategory("native")]
public class NativeTests : BlazorWasmTestBase
{
public NativeTests(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Wasm.Build.Tests.Blazor
{
[TestCategory("native")]
public class NoopNativeRebuildTest : BlazorWasmTestBase
{
public NoopNativeRebuildTest(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Wasm.Build.Tests.MT.Blazor;

[TestCategory("mono")]
public class SimpleMultiThreadedTests : BlazorWasmTestBase
{
public SimpleMultiThreadedTests(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
1 change: 1 addition & 0 deletions src/mono/wasm/Wasm.Build.Tests/Blazor/SimpleRunTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public async Task BlazorBuildAndRunForDifferentOutputPaths(Configuration config,
[InlineData(Configuration.Debug, false)]
[InlineData(Configuration.Release, false)]
[InlineData(Configuration.Release, true)]
[TestCategory("native")]
public async Task BlazorPublishRunTest(Configuration config, bool aot)
{
ProjectInfo info = CopyTestAsset(config, aot, TestAsset.BlazorBasicTestApp, "blazor_publish");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ public class TestAsset
public static readonly TestAsset BlazorBasicTestApp = new() { Name = "BlazorBasicTestApp", RunnableProjectSubPath = "App" };
public static readonly TestAsset LibraryModeTestApp = new() { Name = "LibraryMode" };
public static readonly TestAsset BlazorWebWasm = new() { Name = "BlazorWebWasm", RunnableProjectSubPath = "BlazorWebWasm" };
public static readonly TestAsset WasmBrowserRunMainOnly = new() { Name = "WasmBrowserRunMainOnly" };
}
2 changes: 2 additions & 0 deletions src/mono/wasm/Wasm.Build.Tests/BuildPublishTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public BuildPublishTests(ITestOutputHelper output, SharedBuildPerTestClassFixtur

[Theory]
[BuildAndRun(config: Configuration.Debug, aot: true)]
[TestCategory("native")]
public void Wasm_CannotAOT_InDebug(Configuration config, bool aot)
{
ProjectInfo info = CopyTestAsset(config, aot, TestAsset.WasmBasicTestApp, "no_aot_in_debug");
Expand Down Expand Up @@ -50,6 +51,7 @@ public async Task BuildThenPublishNoAOT(Configuration config, bool aot)

[Theory]
[BuildAndRun(config: Configuration.Release, aot: true)]
[TestCategory("native")]
public async Task BuildThenPublishWithAOT(Configuration config, bool aot)
{
ProjectInfo info = CopyTestAsset(config, aot, TestAsset.WasmBasicTestApp, "build_publish");
Expand Down
1 change: 1 addition & 0 deletions src/mono/wasm/Wasm.Build.Tests/DiagnosticsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Wasm.Build.Tests;

[TestCategory("mono")]
public class DiagnosticsTests : WasmTemplateTestsBase
{
public DiagnosticsTests(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
1 change: 1 addition & 0 deletions src/mono/wasm/Wasm.Build.Tests/DllImportTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

namespace Wasm.Build.Tests
{
[TestCategory("native")]
public class DllImportTests : PInvokeTableGeneratorTestsBase
{
public DllImportTests(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
2 changes: 2 additions & 0 deletions src/mono/wasm/Wasm.Build.Tests/IcuShardingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ from locale in locales

[Theory]
[MemberData(nameof(IcuExpectedAndMissingCustomShardTestData), parameters: new object[] { Configuration.Release })]
[TestCategory("native")]
public async Task CustomIcuShard(Configuration config, bool aot, string customIcuPath, string customLocales, bool onlyPredefinedCultures) =>
await TestIcuShards(config, Template.WasmBrowser, aot, customIcuPath, customLocales, GlobalizationMode.Custom, onlyPredefinedCultures);

[Theory]
[MemberData(nameof(IcuExpectedAndMissingAutomaticShardTestData), parameters: new object[] { Configuration.Release })]
[TestCategory("native")]
public async Task AutomaticShardSelectionDependingOnEnvLocale(Configuration config, bool aot, string environmentLocale, string testedLocales) =>
await PublishAndRunIcuTest(config, Template.WasmBrowser, aot, testedLocales, GlobalizationMode.Sharded, locale: environmentLocale);
}
1 change: 1 addition & 0 deletions src/mono/wasm/Wasm.Build.Tests/IcuShardingTests2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ from locale in locales

[Theory]
[MemberData(nameof(IcuExpectedAndMissingShardFromRuntimePackTestData), parameters: new object[] { Configuration.Release })]
[TestCategory("native")]
public async Task DefaultAvailableIcuShardsFromRuntimePack(Configuration config, bool aot, string shardName, string testedLocales) =>
await TestIcuShards(config, Template.WasmBrowser, aot, shardName, testedLocales, GlobalizationMode.Custom);
}
3 changes: 3 additions & 0 deletions src/mono/wasm/Wasm.Build.Tests/IcuTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public static IEnumerable<object[]> IncorrectIcuTestData(Configuration config)

[Theory]
[MemberData(nameof(FullIcuWithInvariantTestData), parameters: new object[] { Configuration.Release })]
[TestCategory("native")]
public async Task FullIcuFromRuntimePackWithInvariant(Configuration config=Configuration.Release, bool aot=false, bool invariant=true, bool fullIcu=true, string testedLocales="Array.Empty<Locale>()") =>
await PublishAndRunIcuTest(
config,
Expand All @@ -66,6 +67,7 @@ await PublishAndRunIcuTest(

[Theory]
[MemberData(nameof(FullIcuWithICustomIcuTestData), parameters: new object[] { Configuration.Release })]
[TestCategory("native")]
public async Task FullIcuFromRuntimePackWithCustomIcu(Configuration config, bool aot, bool fullIcu)
{
string customIcuProperty = "BlazorIcuDataFileName";
Expand All @@ -82,6 +84,7 @@ public async Task FullIcuFromRuntimePackWithCustomIcu(Configuration config, bool

[Theory]
[MemberData(nameof(IncorrectIcuTestData), parameters: new object[] { Configuration.Release })]
[TestCategory("workload")]
public void NonExistingCustomFileAssertError(Configuration config, string customIcu, bool isFilenameFormCorrect)
{
string customIcuProperty = "BlazorIcuDataFileName";
Expand Down
1 change: 1 addition & 0 deletions src/mono/wasm/Wasm.Build.Tests/InterpPgoTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

namespace Wasm.Build.Tests;

[TestCategory("mono")]
public class InterpPgoTests : WasmTemplateTestsBase
{
public InterpPgoTests(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ public InvariantGlobalizationTests(ITestOutputHelper output, SharedBuildPerTestC
[Theory]
[MemberData(nameof(InvariantGlobalizationTestData), parameters: new object[] { /*aot*/ false })]
[MemberData(nameof(InvariantGlobalizationTestData), parameters: new object[] { /*aot*/ true })]
[TestCategory("native")]
public async Task AOT_InvariantGlobalization(Configuration config, bool aot, bool? invariantGlobalization)
=> await TestInvariantGlobalization(config, aot, invariantGlobalization);

// TODO: What else should we use to verify a relinked build?
[Theory]
[MemberData(nameof(InvariantGlobalizationTestData), parameters: new object[] { /*aot*/ false })]
[TestCategory("native")]
public async Task RelinkingWithoutAOT(Configuration config, bool aot, bool? invariantGlobalization)
=> await TestInvariantGlobalization(config, aot, invariantGlobalization, isNativeBuild: true);

Expand Down
2 changes: 2 additions & 0 deletions src/mono/wasm/Wasm.Build.Tests/InvariantTimezoneTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ public InvariantTimezoneTests(ITestOutputHelper output, SharedBuildPerTestClassF
[Theory]
[MemberData(nameof(InvariantTimezoneTestData), parameters: new object[] { /*aot*/ false, })]
[MemberData(nameof(InvariantTimezoneTestData), parameters: new object[] { /*aot*/ true })]
[TestCategory("native")]
public async Task AOT_InvariantTimezone(Configuration config, bool aot, bool? invariantTimezone)
=> await TestInvariantTimezone(config, aot, invariantTimezone);

[Theory]
[MemberData(nameof(InvariantTimezoneTestData), parameters: new object[] { /*aot*/ false })]
[TestCategory("native")]
public async Task RelinkingWithoutAOT(Configuration config, bool aot, bool? invariantTimezone)
=> await TestInvariantTimezone(config, aot, invariantTimezone, isNativeBuild: true);

Expand Down
1 change: 1 addition & 0 deletions src/mono/wasm/Wasm.Build.Tests/LazyLoadingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

[Theory, TestCategory("no-fingerprinting")]
[MemberData(nameof(LoadLazyAssemblyBeforeItIsNeededData))]
[Skip("Fails on CoreCLR: PDBs not loaded for lazy assemblies. See issues.md.", RuntimeFlavor = "CoreCLR")]

Check failure on line 32 in src/mono/wasm/Wasm.Build.Tests/LazyLoadingTests.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release CoreCLR)

src/mono/wasm/Wasm.Build.Tests/LazyLoadingTests.cs#L32

src/mono/wasm/Wasm.Build.Tests/LazyLoadingTests.cs(32,6): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'SkipAttribute' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 32 in src/mono/wasm/Wasm.Build.Tests/LazyLoadingTests.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release CoreCLR)

src/mono/wasm/Wasm.Build.Tests/LazyLoadingTests.cs#L32

src/mono/wasm/Wasm.Build.Tests/LazyLoadingTests.cs(32,6): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Skip' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 32 in src/mono/wasm/Wasm.Build.Tests/LazyLoadingTests.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release SingleThreaded_BuildOnly)

src/mono/wasm/Wasm.Build.Tests/LazyLoadingTests.cs#L32

src/mono/wasm/Wasm.Build.Tests/LazyLoadingTests.cs(32,6): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'SkipAttribute' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 32 in src/mono/wasm/Wasm.Build.Tests/LazyLoadingTests.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release SingleThreaded_BuildOnly)

src/mono/wasm/Wasm.Build.Tests/LazyLoadingTests.cs#L32

src/mono/wasm/Wasm.Build.Tests/LazyLoadingTests.cs(32,6): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'Skip' could not be found (are you missing a using directive or an assembly reference?)
public async Task LoadLazyAssemblyBeforeItIsNeeded(string lazyLoadingTestExtension, string[] allLazyLoadingTestExtensions)
{
Configuration config = Configuration.Debug;
Expand Down
2 changes: 2 additions & 0 deletions src/mono/wasm/Wasm.Build.Tests/MainWithArgsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ public MainWithArgsTests(ITestOutputHelper output, SharedBuildPerTestClassFixtur
[Theory]
[MemberData(nameof(MainWithArgsTestData), parameters: new object[] { /*aot*/ false })]
[MemberData(nameof(MainWithArgsTestData), parameters: new object[] { /*aot*/ true })]
[TestCategory("native")]
public async Task AsyncMainWithArgs(Configuration config, bool aot, string[] args)
=> await TestMainWithArgs(config, aot, "async_main_with_args", "AsyncMainWithArgs.cs", args);

[Theory]
[MemberData(nameof(MainWithArgsTestData), parameters: new object[] { /*aot*/ false })]
[MemberData(nameof(MainWithArgsTestData), parameters: new object[] { /*aot*/ true })]
[TestCategory("native")]
public async Task NonAsyncMainWithArgs(Configuration config, bool aot, string[] args)
=> await TestMainWithArgs(config, aot, "non_async_main_args", "SyncMainWithArgs.cs", args);

Expand Down
1 change: 1 addition & 0 deletions src/mono/wasm/Wasm.Build.Tests/MemoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Wasm.Build.Tests;

[TestCategory("native")]
public class MemoryTests : WasmTemplateTestsBase
{
public MemoryTests(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
18 changes: 13 additions & 5 deletions src/mono/wasm/Wasm.Build.Tests/ModuleConfigTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,19 @@ public async Task AssetIntegrity()
}

[Theory]
[InlineData(true, false)]
[InlineData(true, true)]
[InlineData(false, false)]
[InlineData(false, true)]
public void SymbolMapFileEmitted(bool emitSymbolMap, bool isPublish)
[InlineData(false)]
[InlineData(true)]
[TestCategory("native")]
public void SymbolMapFileEmitted(bool isPublish)
=> SymbolMapFileEmittedCore(emitSymbolMap: true, isPublish);

[Theory]
[InlineData(false)]
[InlineData(true)]
public void SymbolMapFileNotEmitted(bool isPublish)
=> SymbolMapFileEmittedCore(emitSymbolMap: false, isPublish);

private void SymbolMapFileEmittedCore(bool emitSymbolMap, bool isPublish)
{
Configuration config = Configuration.Release;
string extraProperties = $"<WasmEmitSymbolMap>{emitSymbolMap.ToString().ToLowerInvariant()}</WasmEmitSymbolMap>";
Expand Down
1 change: 1 addition & 0 deletions src/mono/wasm/Wasm.Build.Tests/NativeBuildTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Wasm.Build.Tests
{
[TestCategory("native")]
public class NativeBuildTests : WasmTemplateTestsBase
{
public NativeBuildTests(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
1 change: 1 addition & 0 deletions src/mono/wasm/Wasm.Build.Tests/NativeLibraryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Wasm.Build.Tests
{
[TestCategory("native")]
public class NativeLibraryTests : WasmTemplateTestsBase
{
public NativeLibraryTests(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Wasm.Build.NativeRebuild.Tests
{
[TestCategory("native")]
public class FlagsChangeRebuildTests : NativeRebuildTestsBase
{
public FlagsChangeRebuildTests(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Wasm.Build.NativeRebuild.Tests
{
[TestCategory("native")]
public class NoopNativeRebuildTest : NativeRebuildTestsBase
{
public NoopNativeRebuildTest(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

namespace Wasm.Build.NativeRebuild.Tests;

[TestCategory("native")]
public class OptimizationFlagChangeTests : NativeRebuildTestsBase
{
public OptimizationFlagChangeTests(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Wasm.Build.NativeRebuild.Tests
{
[TestCategory("native")]
public class ReferenceNewAssemblyRebuildTest : NativeRebuildTestsBase
{
public ReferenceNewAssemblyRebuildTest(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

namespace Wasm.Build.NativeRebuild.Tests
{
[TestCategory("native")]
public class SimpleSourceChangeRebuildTest : NativeRebuildTestsBase
{
public SimpleSourceChangeRebuildTest(ITestOutputHelper output, SharedBuildPerTestClassFixture buildContext)
Expand Down
Loading
Loading