Beispiel #1
0
 internal ReportBase(ApplicationConfiguration configuration, IExtendedConsole console, RunContext runContext, ColorScheme colorScheme)
 {
     _configuration = configuration;
     _console       = console;
     _runContext    = runContext;
     _colorScheme   = colorScheme;
 }
Beispiel #2
0
 public ReportFactory(ApplicationConfiguration configuration, IExtendedConsole console, RunContext runContext, ColorScheme colorScheme)
 {
     _configuration = configuration;
     _console       = console;
     _runContext    = runContext;
     _colorScheme   = colorScheme;
 }
Beispiel #3
0
 public Commander(ApplicationConfiguration configuration, ColorScheme colorScheme, IExtendedConsole console, int runNumber, RunContext runContext) : this(configuration, colorScheme)
 {
     if (configuration == null)
     {
         throw new ArgumentNullException(nameof(configuration));
     }
     if (colorScheme == null)
     {
         throw new ArgumentNullException(nameof(colorScheme));
     }
     if (console == null)
     {
         throw new ArgumentNullException(nameof(console));
     }
     if (runContext == null)
     {
         throw new ArgumentNullException(nameof(runContext));
     }
     _console   = new ConsoleWrapper(console, configuration);
     RunNumber  = runNumber;
     RunContext = runContext;
     _activeTestLifetimeMilliseconds = configuration.ActiveTestLifetimeMilliseconds > 0 ? configuration.ActiveTestLifetimeMilliseconds : DefaultActiveTestLifetimeMilliseconds;
     if (_console.IsOutputRedirected)
     {
         _activeTestLifetimeMilliseconds = configuration.RedirectedActiveTestLifetimeMilliseconds > 0 ? configuration.RedirectedActiveTestLifetimeMilliseconds : DefaultRedirectedActiveTestLifetimeMilliseconds;
         _drawIntervalMilliseconds       = configuration.RedirectedDrawIntervalMilliseconds > 0 ? configuration.RedirectedDrawIntervalMilliseconds : DefaultRedirectedDrawIntervalMilliseconds;
     }
 }
Beispiel #4
0
        public ComponentRenderer(IExtendedConsole console, ConsoleDataContext dataContext)
        {
            _console     = console;
            _dataContext = dataContext;

            _isRunning.Reset();
            InitializeBuiltInComponents();
            _componentUpdateThread = new Thread(new ThreadStart(ComponentUpdateThread));
            _componentUpdateThread.Start();
        }
 public ReportWriter(IExtendedConsole console, ColorScheme colorScheme, ApplicationConfiguration configuration, RunContext runContext, bool allowFileOperations)
 {
     _console             = console;
     _colorScheme         = colorScheme;
     _configuration       = configuration;
     _runContext          = runContext;
     _reportFactory       = new ReportFactory(_configuration, _console, _runContext, _colorScheme);
     _allowFileOperations = allowFileOperations;
     // generate the header/lines art by width
     _headerLine    = new string(UTF8Constants.BoxHorizontal, DefaultBorderWidth);
     _lineSeparator = new string(UTF8Constants.HorizontalLine, !_console.IsOutputRedirected ? (Console.WindowWidth - 1) : DefaultBorderWidth);
 }
Beispiel #6
0
        /// <summary>
        /// Called once on startup
        /// </summary>
        /// <param name="name"></param>
        public void Setup(ConsoleDataContext dataContext, string name, IExtendedConsole console)
        {
            _dataContext = dataContext;
            // we don't need these but we will store them
            _name    = name;
            _console = console;

            _isRunning.Reset();
            _updateThread = new Thread(new ThreadStart(UpdateThread));
            _updateThread.IsBackground = true;
            _updateThread.Priority     = ThreadPriority.BelowNormal;
            _updateThread.Start();
        }
 public ConsoleWrapper(IExtendedConsole console, ApplicationConfiguration config)
 {
     _console = console;
     _config  = config;
     if (config.EnableLog)
     {
         if (EnsurePathIsCreated(config.LogPath))
         {
             _stream = new MemoryStream();
         }
     }
     _stream ??= Stream.Null; // log to null stream
     _streamWriter           = new StreamWriter(_stream);
     _streamWriter.AutoFlush = true;
 }
 public HistoricalAnalysisReport(ApplicationConfiguration configuration, IExtendedConsole console, RunContext runContext, ColorScheme colorScheme) : base(configuration, console, runContext, colorScheme)
 {
 }
 public Overview(ApplicationConfiguration configuration, IExtendedConsole console, RunContext runContext, ColorScheme colorScheme) : base(configuration, console, runContext, colorScheme)
 {
 }
 public ReportSummary(ApplicationConfiguration configuration, IExtendedConsole console, RunContext runContext, ColorScheme colorScheme) : base(configuration, console, runContext, colorScheme)
 {
 }
Beispiel #11
0
 public virtual void Setup(ConsoleDataContext data, string name, IExtendedConsole console)
 {
     _data = data;
 }
 public FailedTestsReport(ApplicationConfiguration configuration, IExtendedConsole console, RunContext runContext, ColorScheme colorScheme) : base(configuration, console, runContext, colorScheme)
 {
 }
Beispiel #13
0
 public SlowestAssembliesSummary(ApplicationConfiguration configuration, IExtendedConsole console, RunContext runContext, ColorScheme colorScheme) : base(configuration, console, runContext, colorScheme)
 {
 }
Beispiel #14
0
 public StackedCharts(ApplicationConfiguration configuration, IExtendedConsole console, RunContext runContext, ColorScheme colorScheme) : base(configuration, console, runContext, colorScheme)
 {
 }