Skip to content

Commit

Permalink
Enable post processing (#3384)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoRossignoli committed Feb 18, 2022
1 parent 885bd8d commit 326bc26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#if !NETSTANDARD1_0

#nullable disable

namespace Microsoft.VisualStudio.TestPlatform.Utilities;

using System;
Expand All @@ -20,7 +18,7 @@ internal partial class FeatureFlag : IFeatureFlag

static FeatureFlag()
{
FeatureFlags.Add(ARTIFACTS_POSTPROCESSING, false);
FeatureFlags.Add(ARTIFACTS_POSTPROCESSING, true);
FeatureFlags.Add(ARTIFACTS_POSTPROCESSING_SDK_KEEP_OLD_UX, false);
}

Expand Down
7 changes: 6 additions & 1 deletion src/vstest.console/Internal/ConsoleLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,12 @@ private void TestRunCompleteHandler(object sender, TestRunCompleteEventArgs e)
var runLevelAttachementCount = (e.AttachmentSets == null) ? 0 : e.AttachmentSets.Sum(attachmentSet => attachmentSet.Attachments.Count);
if (runLevelAttachementCount > 0)
{
if (!_featureFlag.IsEnabled(FeatureFlag.ARTIFACTS_POSTPROCESSING) || _featureFlag.IsEnabled(FeatureFlag.ARTIFACTS_POSTPROCESSING_SDK_KEEP_OLD_UX))
// If ARTIFACTS_POSTPROCESSING is disabled
if (!_featureFlag.IsEnabled(FeatureFlag.ARTIFACTS_POSTPROCESSING) ||
// ARTIFACTS_POSTPROCESSING_SDK_KEEP_OLD_UX(old UX) is enabled
_featureFlag.IsEnabled(FeatureFlag.ARTIFACTS_POSTPROCESSING_SDK_KEEP_OLD_UX) ||
// TestSessionCorrelationId is null(we're not running through the dotnet SDK).
CommandLineOptions.Instance.TestSessionCorrelationId is null)
{
Output.Information(false, CommandLineResources.AttachmentsBanner);
foreach (var attachmentSet in e.AttachmentSets)
Expand Down

0 comments on commit 326bc26

Please sign in to comment.