From ffc6fcea61068571e61ffdd518b85028873e8582 Mon Sep 17 00:00:00 2001 From: Michael Ritchie Date: Sun, 27 Mar 2016 09:00:19 +0100 Subject: [PATCH] =?UTF-8?q?Alias=20examples=20for=20MSTest=20#750=20Cake.C?= =?UTF-8?q?ommon.Tools.MSTest=E2=80=8B.MSTest(string)=E2=80=8B=20Cake.Comm?= =?UTF-8?q?on.Tools.MSTest=E2=80=8B.MSTest(string,=20=E2=80=8BMSTestSettin?= =?UTF-8?q?gs)=E2=80=8B=20Cake.Common.Tools.MSTest=E2=80=8B.MSTest(IEnumer?= =?UTF-8?q?able)=E2=80=8B=20Cake.Common.Tools.MSTest=E2=80=8B.MS?= =?UTF-8?q?Test(IEnumerable,=20=E2=80=8BMSTestSettings)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Cake.Common/Tools/MSTest/MSTestAliases.cs | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/Cake.Common/Tools/MSTest/MSTestAliases.cs b/src/Cake.Common/Tools/MSTest/MSTestAliases.cs index 33fd7bfc37..39c605f977 100644 --- a/src/Cake.Common/Tools/MSTest/MSTestAliases.cs +++ b/src/Cake.Common/Tools/MSTest/MSTestAliases.cs @@ -17,6 +17,11 @@ public static class MSTestAliases /// /// Runs all MSTest unit tests in the assemblies matching the specified pattern. /// + /// + /// + /// MSTest("./Tests/*.UnitTests.dll"); + /// + /// /// The context. /// The pattern. [CakeMethodAlias] @@ -40,6 +45,11 @@ public static void MSTest(this ICakeContext context, string pattern) /// /// Runs all MSTest unit tests in the assemblies matching the specified pattern. /// + /// + /// + /// MSTest("./Tests/*.UnitTests.dll", new MSTestSettings() { NoIsolation = false }); + /// + /// /// The context. /// The pattern. /// The settings. @@ -64,6 +74,12 @@ public static void MSTest(this ICakeContext context, string pattern, MSTestSetti /// /// Runs all MSTest unit tests in the specified assemblies. /// + /// + /// + /// var paths = new List<FilePath>() { "./assemblydir1", "./assemblydir2" }; + /// MSTest(paths); + /// + /// /// The context. /// The assembly paths. [CakeMethodAlias] @@ -75,6 +91,12 @@ public static void MSTest(this ICakeContext context, IEnumerable assem /// /// Runs all MSTest unit tests in the specified assemblies. /// + /// + /// + /// var paths = new List<FilePath>() { "./assemblydir1", "./assemblydir2" }; + /// MSTest(paths, new MSTestSettings() { NoIsolation = false }); + /// + /// /// The context. /// The assembly paths. /// The settings.