Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Fixed build.
  • Loading branch information
Haplois committed Aug 24, 2022
commit b804a445878e0095af295e2a438dee5de2ebceb6
4 changes: 1 addition & 3 deletions src/vstest.console/Internal/ConsoleLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -701,13 +701,13 @@ private void TestRunCompleteHandler(object? sender, TestRunCompleteEventArgs e)
}
}

var sourceSummary = new SourceSummary();
var leafTestResultsPerSource = LeafTestResults?.Select(p => p.Value).GroupBy(r => r.TestCase.Source);
if (leafTestResultsPerSource != null)
{
foreach (var sd in leafTestResultsPerSource)
{
var source = sd.Key;
var sourceSummary = new SourceSummary();

var results = sd.ToArray();
// duration of the whole source is the difference between the test that ended last and the one that started first
Expand Down Expand Up @@ -842,7 +842,6 @@ private void TestRunCompleteHandler(object? sender, TestRunCompleteEventArgs e)
var skipped = sourceSummary.SkippedTests.ToString(CultureInfo.CurrentCulture).PadLeft(5);
var total = sourceSummary.TotalTests.ToString(CultureInfo.CurrentCulture).PadLeft(5);


var frameworkString = _targetFramework.IsNullOrEmpty()
? string.Empty
: $"({_targetFramework})";
Expand All @@ -860,7 +859,6 @@ private void TestRunCompleteHandler(object? sender, TestRunCompleteEventArgs e)
sourceName,
frameworkString);


ConsoleColor? color = null;
if (sourceOutcome == TestOutcome.Failed)
{
Expand Down