Ejemplo n.º 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))
     };
 }
 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>();
 }
Ejemplo n.º 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);
        }