Skip to content

Commit

Permalink
[tests] Temporarily disable filtering from watchOS test projects in T…
Browse files Browse the repository at this point in the history
…ouch.Client mode.
  • Loading branch information
rolfbjarne committed Jul 16, 2020
1 parent d4eedf0 commit 64b6c45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/templates/WatchExtension/InterfaceController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public override void Awake (NSObject context)
void LoadTests ()
{
runner = new WatchOSRunner ();
#if !NUNITLITE_NUGET
var categoryFilter = new NotFilter (new CategoryExpression ("MobileNotWorking,NotOnMac,NotWorking,ValueAdd,CAS,InetAccess,NotWorkingLinqInterpreter,RequiresBSDSockets,BitcodeNotSupported").Filter);
if (!string.IsNullOrEmpty (Environment.GetEnvironmentVariable ("NUNIT_FILTER_START"))) {
var firstChar = Environment.GetEnvironmentVariable ("NUNIT_FILTER_START") [0];
Expand All @@ -80,6 +81,7 @@ void LoadTests ()
} else {
runner.Filter = categoryFilter;
}
#endif
runner.Add (GetType ().Assembly);
TestLoader.AddTestAssemblies (runner);
ThreadPool.QueueUserWorkItem ((v) =>
Expand Down Expand Up @@ -154,6 +156,7 @@ partial void RunTests (NSObject obj)
}
}

#if !NUNITLITE_NUGET
class NameStartsWithFilter : NUnit.Framework.Internal.TestFilter
{
public char FirstChar;
Expand Down Expand Up @@ -185,3 +188,4 @@ public override bool Pass (NUnit.Framework.Api.ITest test)
return Match (test);
}
}
#endif

0 comments on commit 64b6c45

Please sign in to comment.