diff options
author | Lluis Sanchez Gual <lluis@xamarin.com> | 2017-02-15 15:56:01 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2017-02-15 15:56:01 +0300 |
commit | d550dd52a3ba754d6af49ceead381f8bb2723ff6 (patch) | |
tree | 7164ce027fbe7d148cdb267effbf6a9d1d945699 | |
parent | 4fe2e6358e14c4dfde523a14329da5ca1a8a15f1 (diff) |
Allow running the unit tests without the image verifier
-rw-r--r-- | Testing/GtkTestRunner/Main.cs | 7 | ||||
-rw-r--r-- | Testing/MacTestRunner/Main.cs | 7 | ||||
-rw-r--r-- | Testing/WpfTestRunner/Program.cs | 7 |
3 files changed, 18 insertions, 3 deletions
diff --git a/Testing/GtkTestRunner/Main.cs b/Testing/GtkTestRunner/Main.cs index 6dc4b09c..453a140c 100644 --- a/Testing/GtkTestRunner/Main.cs +++ b/Testing/GtkTestRunner/Main.cs @@ -41,8 +41,13 @@ namespace GtkTestRunner list.Add ("-nothread"); if (!list.Contains (typeof (MainClass).Assembly.Location)) list.Add (typeof (MainClass).Assembly.Location); + + bool skipImageVerification = list.Remove ("-no-image-verify"); + NUnit.ConsoleRunner.Runner.Main (list.ToArray ()); - ReferenceImageManager.ShowImageVerifier (); + + if (!skipImageVerification) + ReferenceImageManager.ShowImageVerifier (); } } } diff --git a/Testing/MacTestRunner/Main.cs b/Testing/MacTestRunner/Main.cs index 5553e793..573d1e24 100644 --- a/Testing/MacTestRunner/Main.cs +++ b/Testing/MacTestRunner/Main.cs @@ -16,8 +16,13 @@ namespace MacTest list.Add ("-nothread"); // if (!list.Contains (typeof (MainClass).Assembly.Location)) // list.Add (typeof (MainClass).Assembly.Location); + + bool skipImageVerification = list.Remove ("-no-image-verify"); + NUnit.ConsoleRunner.Runner.Main (list.ToArray ()); - ReferenceImageManager.ShowImageVerifier (); + + if (!skipImageVerification) + ReferenceImageManager.ShowImageVerifier (); } } } diff --git a/Testing/WpfTestRunner/Program.cs b/Testing/WpfTestRunner/Program.cs index 9128e2dc..6a773f23 100644 --- a/Testing/WpfTestRunner/Program.cs +++ b/Testing/WpfTestRunner/Program.cs @@ -17,8 +17,13 @@ namespace WpfTestRunner list.Add ("-nothread"); if (!list.Contains (typeof (Program).Assembly.Location)) list.Add (typeof (Program).Assembly.Location); + + bool skipImageVerification = list.Remove ("-no-image-verify"); + NUnit.ConsoleRunner.Runner.Main (list.ToArray ()); - ReferenceImageManager.ShowImageVerifier (); + + if (!skipImageVerification) + ReferenceImageManager.ShowImageVerifier (); } } } |