예제 #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>();
 }
예제 #3
0
        public MutationProcess(MutationTestInput mutationTestInput,
                               IMutantOrchestrator orchestrator = null,
                               IFileSystem fileSystem           = null,
                               IStrykerOptions options          = null,

                               IMutantFilter mutantFilter = null,
                               IReporter reporter         = null)
        {
            _input            = mutationTestInput;
            _projectInfo      = (ProjectComponent <SyntaxTree>)mutationTestInput.ProjectInfo.ProjectContents;
            _options          = options;
            _orchestrator     = orchestrator ?? new MutantOrchestrator(options: _options);
            _compilingProcess = new CompilingProcess(mutationTestInput, new RollbackProcess());
            _fileSystem       = fileSystem ?? new FileSystem();
            _logger           = ApplicationLogging.LoggerFactory.CreateLogger <MutationTestProcess>();

            _mutantFilter = mutantFilter ?? MutantFilterFactory.Create(options);
            _reporter     = reporter;
        }
        public MutationTestProcess(MutationTestInput mutationTestInput,
                                   IReporter reporter,
                                   IMutationTestExecutor mutationTestExecutor,
                                   IMutantOrchestrator orchestrator   = null,
                                   IFileSystem fileSystem             = null,
                                   IMutantFilter mutantFilter         = null,
                                   ICoverageAnalyser coverageAnalyser = null,
                                   IStrykerOptions options            = null)
        {
            Input                 = mutationTestInput;
            _projectContents      = mutationTestInput.ProjectInfo.ProjectContents;
            _reporter             = reporter;
            _options              = options;
            _mutationTestExecutor = mutationTestExecutor;
            _logger               = ApplicationLogging.LoggerFactory.CreateLogger <MutationTestProcess>();
            _coverageAnalyser     = coverageAnalyser ?? new CoverageAnalyser(_options, _mutationTestExecutor, mutationTestInput);

            _mutationProcess = new MutationProcess(Input, orchestrator, fileSystem, _options, mutantFilter, _reporter);
        }
예제 #5
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);
        }