Ejemplo n.º 1
0
        public void ReportInitialState(int totalNumberOfTests)
        {
            _startTime = new Stopwatch();
            _startTime.Start();
            if (totalNumberOfTests == 0)
            {
                _testsProgressLogger.StartLog(LoggingFormat,
                                              GenerateProgressBar(MaxProgressBar),
                                              0,
                                              0,
                                              100,
                                              RemainingTime());
                return;
            }

            _totalNumberOfTests = totalNumberOfTests;
            var totalNumberOfTestsPercentage = _numberOfTestsRun * 100 / _totalNumberOfTests;

            var progressBar = GenerateProgressBar(ProgressBarInitialState);

            _testsProgressLogger.StartLog(LoggingFormat,
                                          progressBar,
                                          _numberOfTestsRun,
                                          _totalNumberOfTests,
                                          totalNumberOfTestsPercentage,
                                          RemainingTime());
        }
Ejemplo n.º 2
0
        public void ReportInitialState(int totalNumberOfTests)
        {
            _stopWatch.Start();
            _totalNumberOfMutants = totalNumberOfTests;

            _testsProgressLogger.StartLog(LoggingFormat,
                                          GenerateProgressBar(0),
                                          0,
                                          _totalNumberOfMutants,
                                          0,
                                          RemainingTime());
        }
Ejemplo n.º 3
0
        public void ReportInitialState(int totalNumberOfTests)
        {
            if (totalNumberOfTests == 0)
            {
                _testsProgressLogger.StartLog(LoggingFormat,
                                              GenerateProgressBar(MaxProgressBar),
                                              0,
                                              0,
                                              100);
                return;
            }

            _totalNumberOfTests = totalNumberOfTests;
            var totalNumberOfTestsPercentage = _numberOfTestsRun * 100 / _totalNumberOfTests;

            var progressBar = GenerateProgressBar(ProgressBarInitialState);

            _testsProgressLogger.StartLog(LoggingFormat,
                                          progressBar,
                                          _numberOfTestsRun,
                                          _totalNumberOfTests,
                                          totalNumberOfTestsPercentage);
        }
Ejemplo n.º 4
0
 public void ReportInitialState()
 {
     _mutantKilledLogger.StartLog("Killed : {0}", 0);
     _mutantSurvivedLogger.StartLog("Survived: {0}", 0);
     _mutantTimeoutLogger.StartLog("Timeout : {0}", 0);
 }