Example #1
0
        public void Execute()
        {
            var codeCoverageProcessor = new CodeCoverageProcessor(_dbCodeFormatter, _codeHighlighter);
            var codeCover             = new DbCodeCoverage();

            codeCover.Name              = _traceName;
            codeCover.TotalObjects      = _dbProvider.GetAllObjects();
            codeCover.TraceCodeSegments = _dbProvider.GetTraceCodeSegments(_traceName);

            codeCoverageProcessor.ProcessAllCoverage(codeCover);

            _outputProvider.SetUp(_traceName);
            _outputProvider.SaveResults(codeCover);
        }
Example #2
0
        public void Execute()
        {
            Console.WriteLine("Generating results...");

            var codeCoverageProcessor = new CodeCoverageProcessor(_dbCodeFormatter, _codeHighlighter);
            var codeCover             = new DbCodeCoverage();

            Console.WriteLine("    Getting all database objects...");
            codeCover.Name              = _traceName;
            codeCover.TotalObjects      = _dbProvider.GetAllObjects();
            codeCover.TraceCodeSegments = _dbProvider.GetTraceCodeSegments(_traceName);

            Console.WriteLine("    Parsing coverage for {0} database objects...", codeCover.TotalObjects.Count);
            codeCoverageProcessor.ProcessAllCoverage(codeCover);

            Console.WriteLine("    Saving output results...");
            _outputProvider.SetUp(_traceName);
            _outputProvider.SaveResults(codeCover);

            Console.WriteLine("Results generated.");
        }