Skip to content

Commit

Permalink
Use new output for VSTest acceptance test (#4077)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink authored Nov 19, 2024
1 parent 5d6269c commit c203c46
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 c203c46

Please sign in to comment.