// TODO: Should add a filter predicate here. internal static List <string> ParseTestCaseListFailed(JObject data) { List <string> testCaseList; if (!BuildFailureUtil.TryGetTestCaseFailureList(data, out testCaseList)) { testCaseList = new List <string>(); } return(testCaseList); }
internal static BuildFailureInfo ParseBuildFailureInfo(JObject data) { BuildFailureInfo info; if (!BuildFailureUtil.TryGetBuildFailureInfo(data, out info)) { info = BuildFailureInfo.Unknown; } return(info); }
/// <summary> /// Get all of the failed test case names from the testReport /// </summary> /// <remarks> /// It's possible for the testReport to be quite large. In some cases it can be hundreds of megabytes in length. Hence /// we use a reader here vs. a full DOM to save on the allocations. /// </remarks> internal static List <string> ParseTestCaseListFailed(JsonReader reader) { return(BuildFailureUtil.GetTestCaseFailureList(reader)); }