Skip to content

Commit

Permalink
Use new output for VSTest acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink committed Nov 18, 2024
1 parent 22826fc commit ca8f0ec
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ public async Task RunTests_With_VSTest(string multiTfm, BuildConfiguration build
.PatchCodeWithReplace("$TargetFramework$", multiTfm)
.PatchCodeWithReplace("$ExtraProperties$", "<UseVSTest>true</UseVSTest>"));

// Pass '-p:vstestusemsbuildoutput=false' to ensure that the output is not Terminal Logger (only net9+)
DotnetMuxerResult compilationResult = await DotnetCli.RunAsync($"test -c {buildConfiguration} {testAsset.TargetAssetPath} -p:vstestusemsbuildoutput=false", _acceptanceFixture.NuGetGlobalPackagesFolder.Path);
DotnetMuxerResult compilationResult = await DotnetCli.RunAsync($"test -c {buildConfiguration} {testAsset.TargetAssetPath}", _acceptanceFixture.NuGetGlobalPackagesFolder.Path);
Assert.AreEqual(0, compilationResult.ExitCode);

compilationResult.AssertOutputRegEx(@"Passed! - Failed: 0, Passed: 1, Skipped: 0, Total: 1, Duration: .* [m]?s - MSTestSdk.dll \(net8\.0\)");
Expand Down

0 comments on commit ca8f0ec

Please sign in to comment.