Skip to content

Commit

Permalink
changed test run test names (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luka Grabarevic committed Apr 19, 2018
1 parent dcde458 commit 458a408
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion BuildsAppReborn.Access/TFS/Models/TfsTestRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ internal abstract class TfsTestRun : ITestRun
public Int32 TotalTests { get; private set; }

[JsonProperty("unanalyzedTests")]
public Int32 UnanalyzedTests { get; private set; }
public Int32 FailedTests { get; private set; }

#endregion
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public Object Convert(Object value, Type targetType, Object parameter, CultureIn

var stackedItems = new List<StackedItem>();

stackedItems.Add(new StackedItem {Value = testRun.IncompleteTests, Title = "Incomplete Tests", Color = Brushes.Red, Icon = IconProvider.FailIcon});
stackedItems.Add(new StackedItem {Value = testRun.FailedTests, Title = "Failed Tests", Color = Brushes.Red, Icon = IconProvider.FailIcon});
stackedItems.Add(new StackedItem {Value = testRun.NotApplicableTests, Title = "Not Applicable Tests", Color = Brushes.Yellow, Icon = IconProvider.UnknownIcon});
stackedItems.Add(new StackedItem {Value = testRun.PassedTests, Title = "Passed Tests", Color = Brushes.Green, Icon = IconProvider.SuccessIcon});
stackedItems.Add(new StackedItem {Value = testRun.UnanalyzedTests, Title = "Unanalyzed Tests", Color = Brushes.Blue, Icon = IconProvider.LoadingIcon});
stackedItems.Add(new StackedItem {Value = testRun.IncompleteTests, Title = "Incomplete Tests", Color = Brushes.Blue, Icon = IconProvider.LoadingIcon});

return new StackedItemCollection(stackedItems) {TotalCount = testRun.TotalTests, Title = "Total Tests"};
}
Expand Down
6 changes: 3 additions & 3 deletions BuildsAppReborn.Contracts/Models/ITestRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ public interface ITestRun : IObjectItem, IWebItem
{
#region Public Properties

Int32 IncompleteTests { get; }
Int32 FailedTests { get; }

Int32 Id { get; }

Int32 IncompleteTests { get; }

String Name { get; }

Int32 NotApplicableTests { get; }
Expand All @@ -21,8 +23,6 @@ public interface ITestRun : IObjectItem, IWebItem

Int32 TotalTests { get; }

Int32 UnanalyzedTests { get; }

#endregion
}
}

0 comments on commit 458a408

Please sign in to comment.