コード例 #1
0
 public MutationTestProcess(MutationTestInput mutationTestInput,
                            IReporter reporter,
                            IMutationTestExecutor mutationTestExecutor,
                            IMutantOrchestrator orchestrator          = null,
                            ICompilingProcess compilingProcess        = null,
                            IFileSystem fileSystem                    = null,
                            StrykerOptions options                    = null,
                            IEnumerable <IMutantFilter> mutantFilters = null)
 {
     _input                = mutationTestInput;
     _reporter             = reporter;
     _options              = options;
     _mutationTestExecutor = mutationTestExecutor;
     _orchestrator         = orchestrator ?? new MutantOrchestrator(options: _options);
     _compilingProcess     = compilingProcess ?? new CompilingProcess(mutationTestInput, new RollbackProcess());
     _fileSystem           = fileSystem ?? new FileSystem();
     _logger               = ApplicationLogging.LoggerFactory.CreateLogger <MutationTestProcess>();
     _mutantFilters        = mutantFilters ?? new IMutantFilter[]
     {
         new FilePatternMutantFilter(),
         new IgnoredMethodMutantFilter(),
         new ExcludeMutationMutantFilter(),
         new DiffMutantFilter(_options, new GitDiffProvider(_options))
     };
 }
コード例 #2
0
 public MutationTestProcess(MutationTestInput mutationTestInput,
                            IReporter reporter,
                            IMutationTestExecutor mutationTestExecutor,
                            IMutantOrchestrator orchestrator   = null,
                            ICompilingProcess compilingProcess = null,
                            IFileSystem fileSystem             = null)
 {
     _input                = mutationTestInput;
     _reporter             = reporter;
     _mutationTestExecutor = mutationTestExecutor;
     _orchestrator         = orchestrator ?? new MutantOrchestrator();
     _compilingProcess     = compilingProcess ?? new CompilingProcess(mutationTestInput, new RollbackProcess());
     _fileSystem           = fileSystem ?? new FileSystem();
     _logger               = ApplicationLogging.LoggerFactory.CreateLogger <MutationTestProcess>();
 }
コード例 #3
0
        public MutationTestProcess(MutationTestInput mutationTestInput,
                                   IReporter reporter,
                                   IMutationTestExecutor mutationTestExecutor,
                                   IMutantOrchestrator orchestrator   = null,
                                   ICompilingProcess compilingProcess = null,
                                   IFileSystem fileSystem             = null,
                                   StrykerOptions options             = null,
                                   IMutantFilter mutantFilter         = null,
                                   ICoverageAnalyser coverageAnalyser = null)
        {
            _input                = mutationTestInput;
            _reporter             = reporter;
            _options              = options;
            _mutationTestExecutor = mutationTestExecutor;
            _orchestrator         = orchestrator ?? new MutantOrchestrator(options: _options);
            _compilingProcess     = compilingProcess ?? new CompilingProcess(mutationTestInput, new RollbackProcess());
            _fileSystem           = fileSystem ?? new FileSystem();
            _logger               = ApplicationLogging.LoggerFactory.CreateLogger <MutationTestProcess>();
            _coverageAnalyser     = coverageAnalyser ?? new CoverageAnalyser(_options, _mutationTestExecutor, _input);

            _mutantFilter = mutantFilter
                            ?? MutantFilterFactory
                            .Create(options);
        }