Skip to content

Commit

Permalink
[wasm] Enable WasmTemplateTests on CI (#64589)
Browse files Browse the repository at this point in the history
  • Loading branch information
radical authored Feb 3, 2022
1 parent 7550df8 commit ee5e6be
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions eng/pipelines/common/evaluate-default-paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ jobs:
- src/mono/nuget/Microsoft.NET.Runtime.MonoAOTCompiler.Task/*
- src/mono/nuget/Microsoft.NET.Runtime.MonoTargets.Sdk/*
- src/mono/mono/*
- eng/testing/scenarios/BuildWasmAppsJobsList.txt
- eng/Version.Details.xml
- src/mono/wasm/emscripten-version.txt
- subset: wasmdebuggertests
include:
- src/mono/wasm/debugger/*
Expand Down
1 change: 1 addition & 0 deletions eng/testing/scenarios/BuildWasmAppsJobsList.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ Wasm.Build.Tests.SatelliteAssembliesTests
Wasm.Build.Tests.WasmBuildAppTest
Wasm.Build.Tests.WasmNativeDefaultsTests
Wasm.Build.Tests.WorkloadTests
Wasm.Build.Tests.WasmTemplateTests
13 changes: 7 additions & 6 deletions src/tests/BuildWasmApps/Wasm.Build.Tests/WasmTemplateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public WasmTemplateTests(ITestOutputHelper output, SharedBuildPerTestClassFixtur
{
}

[Theory]
[ConditionalTheory(typeof(BuildTestBase), nameof(IsUsingWorkloads))]
[InlineData("Debug")]
[InlineData("Release")]
public void BrowserBuildThenPublish(string config)
Expand Down Expand Up @@ -61,7 +61,7 @@ public void BrowserBuildThenPublish(string config)
UseCache: false));
}

[Theory]
[ConditionalTheory(typeof(BuildTestBase), nameof(IsUsingWorkloads))]
[InlineData("Debug")]
[InlineData("Release")]
public void ConsoleBuildThenPublish(string config)
Expand All @@ -76,10 +76,10 @@ public void ConsoleBuildThenPublish(string config)
BuildProject(buildArgs,
id: id,
new BuildProjectOptions(
DotnetWasmFromRuntimePack: false,
DotnetWasmFromRuntimePack: true,
CreateProject: false,
HasV8Script: false,
MainJS: "main.mjs",
MainJS: "main.cjs",
Publish: false,
TargetFramework: "net7.0"
));
Expand All @@ -92,13 +92,14 @@ public void ConsoleBuildThenPublish(string config)
_testOutput.WriteLine($"{Environment.NewLine}Publishing with no changes ..{Environment.NewLine}");
Console.WriteLine($"{Environment.NewLine}Publishing with no changes ..{Environment.NewLine}");

bool expectRelinking = config == "Release";
BuildProject(buildArgs,
id: id,
new BuildProjectOptions(
DotnetWasmFromRuntimePack: false,
DotnetWasmFromRuntimePack: !expectRelinking,
CreateProject: false,
HasV8Script: false,
MainJS: "main.mjs",
MainJS: "main.cjs",
Publish: true,
TargetFramework: "net7.0",
UseCache: false));
Expand Down

0 comments on commit ee5e6be

Please sign in to comment.