Skip to content

Commit

Permalink
Take non-completed tests instead of last (#2526)
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd authored Aug 19, 2020
1 parent 0a5d4d5 commit b59b50b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ private IEnumerable<string> GetFaultyTestCaseNames(TestRunCompleteEventArgs e)
var testCaseList = this.blameReaderWriter.ReadTestSequence(filepath);
if (testCaseList.Count > 0)
{
var testcase = testCaseList.Last();
faultyTestCaseNames.Add(testcase.FullyQualifiedName);
var testcases = testCaseList.Where(t => !t.IsCompleted).Select(t => t.FullyQualifiedName).ToList();
faultyTestCaseNames.AddRange(testcases);
}
}
}
Expand Down

0 comments on commit b59b50b

Please sign in to comment.