/// <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)); }
/// <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)); }
/// <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); }
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); }
protected override bool Visit(ITestAssemblyExecutionStarting executionStarting) { return(true); }