/// <inheritdoc/>
        protected override bool Visit(ITestAssemblyExecutionStarting executionStarting)
        {
            AddExecutionOptions(executionStarting.Assembly.AssemblyFilename, executionStarting.ExecutionOptions);

            var assemblyDisplayName = GetAssemblyDisplayName(executionStarting.Assembly);

            if (executionStarting.ExecutionOptions.GetDiagnosticMessagesOrDefault())
            {
                var threadCount     = executionStarting.ExecutionOptions.GetMaxParallelThreadsOrDefault();
                var threadCountText = threadCount < 0 ? "unlimited" : threadCount.ToString();
                Logger.LogImportantMessage($"  Starting:    {assemblyDisplayName} (parallel test collections = {(!executionStarting.ExecutionOptions.GetDisableParallelizationOrDefault() ? "on" : "off")}, max threads = {threadCountText})");
            }
            else
            {
                Logger.LogImportantMessage($"  Starting:    {assemblyDisplayName}");
            }

            return(base.Visit(executionStarting));
        }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        protected override bool Visit(ITestAssemblyExecutionStarting executionStarting)
        {
            AddExecutionOptions(executionStarting.Assembly.AssemblyFilename, executionStarting.ExecutionOptions);

            var assemblyDisplayName = GetAssemblyDisplayName(executionStarting.Assembly);

            if (executionStarting.ExecutionOptions.GetDiagnosticMessagesOrDefault())
            {
                Logger.LogImportantMessage("  Starting:    {0} (parallel test collections = {1}, max threads = {2})",
                                           assemblyDisplayName,
                                           !executionStarting.ExecutionOptions.GetDisableParallelizationOrDefault() ? "on" : "off",
                                           executionStarting.ExecutionOptions.GetMaxParallelThreadsOrDefault());
            }
            else
            {
                Logger.LogImportantMessage("  Starting:    {0}", assemblyDisplayName);
            }

            return(base.Visit(executionStarting));
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Called when an instance of <see cref="ITestAssemblyExecutionStarting"/> is sent to the message sink.
 /// </summary>
 /// <param name="executionStarting">The message.</param>
 /// <returns>Return <c>true</c> to continue executing tests; <c>false</c> otherwise.</returns>
 protected virtual bool Visit(ITestAssemblyExecutionStarting executionStarting)
 {
     return(true);
 }
Ejemplo n.º 4
0
 protected override bool Visit(ITestAssemblyExecutionStarting executionStarting)
     => true;
        /// <inheritdoc/>
        protected override bool Visit(ITestAssemblyExecutionStarting executionStarting)
        {
            AddExecutionOptions(executionStarting.Assembly.AssemblyFilename, executionStarting.ExecutionOptions);

            var assemblyDisplayName = GetAssemblyDisplayName(executionStarting.Assembly);

            if (executionStarting.ExecutionOptions.GetDiagnosticMessagesOrDefault())
                Logger.LogImportantMessage("  Starting:    {0} (parallel test collections = {1}, max threads = {2})",
                                           assemblyDisplayName,
                                           !executionStarting.ExecutionOptions.GetDisableParallelizationOrDefault() ? "on" : "off",
                                           executionStarting.ExecutionOptions.GetMaxParallelThreadsOrDefault());
            else
                Logger.LogImportantMessage("  Starting:    {0}", assemblyDisplayName);

            return base.Visit(executionStarting);
        }
        /// <inheritdoc/>
        protected override bool Visit(ITestAssemblyExecutionStarting executionStarting)
        {
            AddExecutionOptions(executionStarting.Assembly.AssemblyFilename, executionStarting.ExecutionOptions);

            var assemblyDisplayName = GetAssemblyDisplayName(executionStarting.Assembly);

            if (executionStarting.ExecutionOptions.GetDiagnosticMessagesOrDefault())
            {
                var threadCount = executionStarting.ExecutionOptions.GetMaxParallelThreadsOrDefault();
                var threadCountText = threadCount < 0 ? "unlimited" : threadCount.ToString();
                Logger.LogImportantMessage($"  Starting:    {assemblyDisplayName} (parallel test collections = {(!executionStarting.ExecutionOptions.GetDisableParallelizationOrDefault() ? "on" : "off")}, max threads = {threadCountText})");
            }
            else
                Logger.LogImportantMessage($"  Starting:    {assemblyDisplayName}");

            return base.Visit(executionStarting);
        }
Ejemplo n.º 7
0
 protected override bool Visit(ITestAssemblyExecutionStarting executionStarting)
 => true;
Ejemplo n.º 8
0
 protected override bool Visit(ITestAssemblyExecutionStarting executionStarting)
 {
     return(true);
 }