コード例 #1
0
 /// <summary>
 /// Log to the AppVeyor logger (which is only available when building your solution on the AppVeyor platform).
 /// </summary>
 /// <param name="settings">The settings.</param>
 /// <returns>The same <see cref="VSTestSettings"/> instance so that multiple calls can be chained.</returns>
 public static VSTestSettings WithApVeyorLogger(this VSTestSettings settings)
 {
     return(settings.WithLogger("AppVeyor"));
 }
コード例 #2
0
 /// <summary>
 /// Do not Log.
 /// </summary>
 /// <param name="settings">The settings.</param>
 /// <returns>The same <see cref="VSTestSettings"/> instance so that multiple calls can be chained.</returns>
 public static VSTestSettings WithoutAnyLogger(this VSTestSettings settings)
 {
     return(settings.WithLogger(string.Empty));
 }
コード例 #3
0
 /// <summary>
 /// Log to a trx file.
 /// </summary>
 /// <param name="settings">The settings.</param>
 /// <returns>The same <see cref="VSTestSettings"/> instance so that multiple calls can be chained.</returns>
 public static VSTestSettings WithVisualStudioLogger(this VSTestSettings settings)
 {
     return(settings.WithLogger("trx"));
 }
コード例 #4
0
        public static void VSTest(this ICakeContext context, IEnumerable <FilePath> assemblyPaths, VSTestSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            if (assemblyPaths == null)
            {
                throw new ArgumentNullException(nameof(assemblyPaths));
            }

            var runner = new VSTestRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run(assemblyPaths, settings);
        }