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 IMutationTestProcess Provide(MutationTestInput mutationTestInput, IReporter reporter, IMutationTestExecutor mutationTestExecutor, IStrykerOptions options) { return(new MutationTestProcess(mutationTestInput, reporter, mutationTestExecutor, options: options)); }
public CoverageAnalyser(StrykerOptions options, IMutationTestExecutor mutationTestExecutor, MutationTestInput input) { _input = input; _mutationTestExecutor = mutationTestExecutor; _options = options; _logger = ApplicationLogging.LoggerFactory.CreateLogger <CoverageAnalyser>(); }
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>(); }
public MutationTestProcess(MutationTestInput mutationTestInput, IReporter reporter, IMutationTestExecutor mutationTestExecutor, MutantOrchestrator <SyntaxNode> 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, Input); _mutationProcess = new CsharpMutationProcess(Input, fileSystem ?? new FileSystem(), _options, mutantFilter, _reporter, orchestrator); }
public MutationTestProcess(MutationTestInput mutationTestInput, IReporter reporter, IMutationTestExecutor mutationTestExecutor, IMutantOrchestrator orchestrator = null, IFileSystem fileSystem = null, StrykerOptions options = null, IMutantFilter mutantFilter = null, ICoverageAnalyser coverageAnalyser = null) { _input = mutationTestInput; _projectInfo = mutationTestInput.ProjectInfo.ProjectContents; _reporter = reporter; _options = options; _mutationTestExecutor = mutationTestExecutor; _orchestrator = orchestrator ?? new MutantOrchestrator(options: _options); _fileSystem = fileSystem ?? new FileSystem(); _logger = ApplicationLogging.LoggerFactory.CreateLogger <MutationTestProcess>(); _coverageAnalyser = coverageAnalyser ?? new CoverageAnalyser(_options, _mutationTestExecutor, _input); SetupMutationTestProcess(mutantFilter); }
public MutationTestProcess(MutationTestInput mutationTestInput, IReporter reporter, IMutationTestExecutor mutationTestExecutor, BaseMutantOrchestrator <SyntaxNode> cSharpOrchestrator = null, BaseMutantOrchestrator <FSharpList <SynModuleOrNamespace> > fSharpOrchestrator = null, IFileSystem fileSystem = null, IMutantFilter mutantFilter = null, ICoverageAnalyser coverageAnalyser = null, StrykerOptions options = null) { Input = mutationTestInput; _projectContents = mutationTestInput.ProjectInfo.ProjectContents; _reporter = reporter; _options = options; _mutationTestExecutor = mutationTestExecutor; _fileSystem = fileSystem ?? new FileSystem(); _logger = ApplicationLogging.LoggerFactory.CreateLogger <MutationTestProcess>(); _coverageAnalyser = coverageAnalyser ?? new CoverageAnalyser(_options, _mutationTestExecutor, Input); _language = Input.ProjectInfo.ProjectUnderTestAnalyzerResult.GetLanguage(); _orchestrator = cSharpOrchestrator ?? fSharpOrchestrator ?? ChooseOrchestrator(_options); SetupMutationTestProcess(mutantFilter); }
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); }