// generate all the different test targets. public List <iOSTestProject> GetiOSBclTargets() { var result = new List <iOSTestProject> (); // generate all projects, then create a new iOSTarget per project foreach (var(name, path, xunit, platforms) in projectGenerator.GenerateAlliOSTestProjects()) { var prefix = xunit ? "xUnit" : "NUnit"; result.Add(new iOSTestProject(path) { Name = $"[{prefix}] Mono {name}", SkiptvOSVariation = !platforms.Contains(Platform.TvOS), SkipwatchOSVariation = !platforms.Contains(Platform.WatchOS), }); } return(result); }
// generate all the different test targets. public List <iOSTestProject> GetiOSBclTargets() { var result = new List <iOSTestProject> (); // generate all projects, then create a new iOSTarget per project foreach (var tp in projectGenerator.GenerateAlliOSTestProjects()) { var prefix = tp.XUnit ? "xUnit" : "NUnit"; result.Add(new iOSTestProject(tp.Path) { Name = $"[{prefix}] Mono {tp.Name}", SkipiOSVariation = !tp.Platforms.Contains(Platform.iOS), SkiptvOSVariation = !tp.Platforms.Contains(Platform.TvOS), SkipwatchOSVariation = !tp.Platforms.Contains(Platform.WatchOS), FailureMessage = tp.Failure, RestoreNugetsInProject = true, MTouchExtraArgs = tp.ExtraArgs, }); } return(result); }
// generate all the different test targets. public List <iOSTestProject> GetiOSBclTargets() { var result = new List <iOSTestProject> (); // generate all projects, then create a new iOSTarget per project foreach (var tp in projectGenerator.GenerateAlliOSTestProjects()) { var prefix = tp.XUnit ? "xUnit" : "NUnit"; var finalName = (tp.Name == "mscorlib") ? tp.Name : $"[{prefix}] Mono {tp.Name}"; // mscorlib is our special test result.Add(new iOSTestProject(tp.Path) { Name = finalName, SkipiOSVariation = !tp.Platforms.Contains(Platform.iOS), SkiptvOSVariation = !tp.Platforms.Contains(Platform.TvOS), SkipwatchOS32Variation = tp.Name == "mscorlib", // mscorlib is our special test SkipwatchOSVariation = !tp.Platforms.Contains(Platform.WatchOS), FailureMessage = tp.Failure, RestoreNugetsInProject = true, MTouchExtraArgs = tp.ExtraArgs, TimeoutMultiplier = tp.TimeoutMultiplier, }); } return(result); }
// generate all the different test targets. public List <iOSTestProject> GetiOSBclTargets() { var result = new List <iOSTestProject> (); // generate all projects, then create a new iOSTarget per project foreach (var(name, path, xunit, platforms) in projectGenerator.GenerateAlliOSTestProjects()) { var prefix = xunit ? "xUnit" : "NUnit"; result.Add(new iOSTestProject(path) { Name = $"[{prefix}] Mono {name}", SkiptvOSVariation = !platforms.Contains(Platform.TvOS), SkipwatchOSVariation = !platforms.Contains(Platform.WatchOS), Dependency = async() => { var rv = await Harness.BuildBclTests(); if (!rv.Succeeded) { throw new Exception($"Failed to build BCL tests, exit code: {rv.ExitCode}. Check the harness log for more details."); } } }); } return(result); }