Skip to content

Commit

Permalink
Alias examples for MSTest cake-build#750
Browse files Browse the repository at this point in the history
Cake.Common.Tools.MSTest​.MSTest(string)​
Cake.Common.Tools.MSTest​.MSTest(string, ​MSTestSettings)​
Cake.Common.Tools.MSTest​.MSTest(IEnumerable<FilePath>)​
Cake.Common.Tools.MSTest​.MSTest(IEnumerable<FilePath>, ​MSTestSettings)
  • Loading branch information
m-ritchie committed Mar 27, 2016
1 parent 7fdd9c2 commit ffc6fce
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/Cake.Common/Tools/MSTest/MSTestAliases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ public static class MSTestAliases
/// <summary>
/// Runs all MSTest unit tests in the assemblies matching the specified pattern.
/// </summary>
/// <example>
/// <code>
/// MSTest("./Tests/*.UnitTests.dll");
/// </code>
/// </example>
/// <param name="context">The context.</param>
/// <param name="pattern">The pattern.</param>
[CakeMethodAlias]
Expand All @@ -40,6 +45,11 @@ public static void MSTest(this ICakeContext context, string pattern)
/// <summary>
/// Runs all MSTest unit tests in the assemblies matching the specified pattern.
/// </summary>
/// <example>
/// <code>
/// MSTest("./Tests/*.UnitTests.dll", new MSTestSettings() { NoIsolation = false });
/// </code>
/// </example>
/// <param name="context">The context.</param>
/// <param name="pattern">The pattern.</param>
/// <param name="settings">The settings.</param>
Expand All @@ -64,6 +74,12 @@ public static void MSTest(this ICakeContext context, string pattern, MSTestSetti
/// <summary>
/// Runs all MSTest unit tests in the specified assemblies.
/// </summary>
/// <example>
/// <code>
/// var paths = new List&lt;FilePath&gt;() { "./assemblydir1", "./assemblydir2" };
/// MSTest(paths);
/// </code>
/// </example>
/// <param name="context">The context.</param>
/// <param name="assemblyPaths">The assembly paths.</param>
[CakeMethodAlias]
Expand All @@ -75,6 +91,12 @@ public static void MSTest(this ICakeContext context, IEnumerable<FilePath> assem
/// <summary>
/// Runs all MSTest unit tests in the specified assemblies.
/// </summary>
/// <example>
/// <code>
/// var paths = new List&lt;FilePath&gt;() { "./assemblydir1", "./assemblydir2" };
/// MSTest(paths, new MSTestSettings() { NoIsolation = false });
/// </code>
/// </example>
/// <param name="context">The context.</param>
/// <param name="assemblyPaths">The assembly paths.</param>
/// <param name="settings">The settings.</param>
Expand Down

0 comments on commit ffc6fce

Please sign in to comment.