示例#1
0
 internal CoverletCoverageCollector(TestPlatformEqtTrace eqtTrace, ICoverageWrapper coverageWrapper, ICountDownEventFactory countDownEventFactory, Func <TestPlatformEqtTrace, TestPlatformLogger, string, IServiceCollection> serviceCollectionFactory) : base()
 {
     _eqtTrace                 = eqtTrace;
     _coverageWrapper          = coverageWrapper;
     _countDownEventFactory    = countDownEventFactory;
     _serviceCollectionFactory = serviceCollectionFactory;
 }
示例#2
0
        public CoverageManager(CoverletSettings settings, IReporter[] reporters, ILogger logger, ICoverageWrapper coverageWrapper)
        {
            // Store input vars
            Reporters        = reporters;
            _coverageWrapper = coverageWrapper;

            // Coverage object
            _coverage = _coverageWrapper.CreateCoverage(settings, logger);
        }
        public CoverageManager(CoverletSettings settings, IReporter reporter, ILogger logger, ICoverageWrapper coverageWrapper)
        {
            // Store input vars
            this.Reporter        = reporter;
            this.coverageWrapper = coverageWrapper;

            // Coverage object
            this.coverage = this.coverageWrapper.CreateCoverage(settings, logger);
        }
示例#4
0
        public CoverageManager(CoverletSettings settings, IReporter[] reporters, ILogger logger, ICoverageWrapper coverageWrapper,
                               IInstrumentationHelper instrumentationHelper, IFileSystem fileSystem, ISourceRootTranslator sourceRootTranslator)
        {
            // Store input vars
            Reporters        = reporters;
            _coverageWrapper = coverageWrapper;

            // Coverage object
            _coverage = _coverageWrapper.CreateCoverage(settings, logger, instrumentationHelper, fileSystem, sourceRootTranslator);
        }
 internal CoverletCoverageCollector(TestPlatformEqtTrace eqtTrace, ICoverageWrapper coverageWrapper, ICountDownEventFactory countDownEventFactory) : base()
 {
     _eqtTrace              = eqtTrace;
     _coverageWrapper       = coverageWrapper;
     _countDownEventFactory = countDownEventFactory;
 }
 public CoverageManager(CoverletSettings settings, TestPlatformEqtTrace eqtTrace, TestPlatformLogger logger, ICoverageWrapper coverageWrapper)
     : this(settings,
            new ReporterFactory(CoverletConstants.DefaultReportFormat).CreateReporter(),
            new CoverletLogger(eqtTrace, logger),
            coverageWrapper)
 {
 }
示例#7
0
 public CoverageManager(CoverletSettings settings, TestPlatformEqtTrace eqtTrace, TestPlatformLogger logger, ICoverageWrapper coverageWrapper)
     : this(settings,
            settings.ReportFormats.Select(format =>
 {
     var reporterFactory = new ReporterFactory(format);
     if (!reporterFactory.IsValidFormat())
     {
         eqtTrace.Warning($"Invalid report format '{format}'");
         return(null);
     }
     else
     {
         return(reporterFactory.CreateReporter());
     }
 }).Where(r => r != null).ToArray(),
            new CoverletLogger(eqtTrace, logger),
            coverageWrapper)
 {
 }
 internal CoverletCoverageCollector(TestPlatformEqtTrace eqtTrace, ICoverageWrapper coverageWrapper) : base()
 {
     _eqtTrace        = eqtTrace;
     _coverageWrapper = coverageWrapper;
 }
示例#9
0
 public CoverageManager(CoverletSettings settings, TestPlatformEqtTrace eqtTrace, TestPlatformLogger logger, ICoverageWrapper coverageWrapper,
                        IInstrumentationHelper instrumentationHelper, IFileSystem fileSystem, ISourceRootTranslator sourceRootTranslator, ICecilSymbolHelper cecilSymbolHelper)
     : this(settings,
            settings.ReportFormats.Select(format =>
 {
     var reporterFactory = new ReporterFactory(format);
     if (!reporterFactory.IsValidFormat())
     {
         eqtTrace.Warning($"Invalid report format '{format}'");
         return(null);
     }
     else
     {
         return(reporterFactory.CreateReporter());
     }
 }).Where(r => r != null).ToArray(),
            new CoverletLogger(eqtTrace, logger),
            coverageWrapper, instrumentationHelper, fileSystem, sourceRootTranslator, cecilSymbolHelper)
 {
 }