void LoadTests() { runner = new WatchOSRunner(); var categoryFilter = new NotFilter(new CategoryExpression("MobileNotWorking,NotOnMac,NotWorking,ValueAdd,CAS,InetAccess,NotWorkingInterpreter,RequiresBSDSockets").Filter); if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("NUNIT_FILTER_START"))) { var firstChar = Environment.GetEnvironmentVariable("NUNIT_FILTER_START") [0]; var lastChar = Environment.GetEnvironmentVariable("NUNIT_FILTER_END") [0]; var nameFilter = new NameStartsWithFilter() { FirstChar = firstChar, LastChar = lastChar }; runner.Filter = new AndFilter(categoryFilter, nameFilter); } else { runner.Filter = categoryFilter; } runner.Add(GetType().Assembly); TestLoader.AddTestAssemblies(runner); ThreadPool.QueueUserWorkItem((v) => { runner.LoadSync(); BeginInvokeOnMainThread(() => { lblStatus.SetText(string.Format("{0} tests", runner.TestCount)); RenderResults(); cmdRun.SetEnabled(true); cmdRun.SetHidden(false); runner.AutoRun(); }); }); }
void LoadTests() { var excludeCategories = new [] { "MobileNotWorking", "NotOnMac", "NotWorking", "ValueAdd", "CAS", "InetAccess", "NotWorkingLinqInterpreter", "RequiresBSDSockets", "BitcodeNotSupported", }; runner = new WatchOSRunner(); runner.ExcludedCategories = new HashSet <string> (excludeCategories); runner.Add(GetType().Assembly); TestLoader.AddTestAssemblies(runner); ThreadPool.QueueUserWorkItem((v) => { runner.LoadSync(); BeginInvokeOnMainThread(() => { lblStatus.SetText(string.Format("{0} tests", runner.TestCount)); RenderResults(); cmdRun.SetEnabled(true); cmdRun.SetHidden(false); runner.AutoRun(); }); }); }
void LoadTests() { runner = new WatchOSRunner(); runner.Filter = new NotFilter(new CategoryExpression("MobileNotWorking,NotOnMac,NotWorking,ValueAdd,CAS,InetAccess,NotWorkingInterpreter").Filter); runner.Add(GetType().Assembly); ThreadPool.QueueUserWorkItem((v) => { runner.LoadSync(); BeginInvokeOnMainThread(() => { lblStatus.SetText(string.Format("{0} tests", runner.TestCount)); RenderResults(); cmdRun.SetEnabled(true); cmdRun.SetHidden(false); runner.AutoRun(); }); }); }