Beispiel #1
0
        public SessionController(
            IDispatcherExecute dispatcher,
            CommonServices svc,
            MutantDetailsController mutantDetailsController,
            IMutantsContainer mutantsContainer,
            ITestsContainer testsContainer,
            IFactory <ResultsSavingController> resultsSavingFactory,
            IFactory <TestingProcess> testingProcessFactory,
            IRootFactory <TestingMutant> testingMutantFactory,
            MutationSessionChoices choices,
            OptionsModel options)
        {
            _dispatcher = dispatcher;
            _svc        = svc;
            _mutantDetailsController = mutantDetailsController;
            _mutantsContainer        = mutantsContainer;
            _testsContainer          = testsContainer;
            _resultsSavingFactory    = resultsSavingFactory;
            _testingProcessFactory   = testingProcessFactory;
            _testingMutantFactory    = testingMutantFactory;
            _choices = choices;

            _sessionState         = SessionState.NotStarted;
            _sessionEventsSubject = new Subject <SessionEventArgs>();
            _subscriptions        = new List <IDisposable>();
            _options = options;
        }
        public SessionController(
            IDispatcherExecute dispatcher,
            CommonServices svc,
            MutantDetailsController mutantDetailsController,
            IMutantsContainer mutantsContainer,
            ITestsContainer testsContainer,
            IFactory<ResultsSavingController> resultsSavingFactory,
            IFactory<TestingProcess> testingProcessFactory,
            IRootFactory<TestingMutant> testingMutantFactory,
            MutationSessionChoices choices)
        {
            _dispatcher = dispatcher;
            _svc = svc;
            _mutantDetailsController = mutantDetailsController;
            _mutantsContainer = mutantsContainer;
            _testsContainer = testsContainer;
            _resultsSavingFactory = resultsSavingFactory;
            _testingProcessFactory = testingProcessFactory;
            _testingMutantFactory = testingMutantFactory;
            _choices = choices;

            _sessionState = SessionState.NotStarted;
            _sessionEventsSubject = new Subject<SessionEventArgs>();
            _subscriptions = new List<IDisposable>();


        }
Beispiel #3
0
 public ContinuousConfigurator(
     IOptionsManager optionsManager,
     IFactory <WhiteCache> whiteCacheFactory,
     IRootFactory <ContinuousConfiguration> continuousConfigurationFactory)
 {
     _optionsManager    = optionsManager;
     _whiteCacheFactory = whiteCacheFactory;
     _continuousConfigurationFactory = continuousConfigurationFactory;
 }
 public ContinuousConfigurator(
     IOptionsManager optionsManager,
     IFactory<WhiteCache> whiteCacheFactory,
     IRootFactory<ContinuousConfiguration> continuousConfigurationFactory)
 {
     _optionsManager = optionsManager;
     _whiteCacheFactory = whiteCacheFactory;
     _continuousConfigurationFactory = continuousConfigurationFactory;
 }
        public ContinuousConfiguration(
            IWhiteSource whiteCache,
            OperatorsManager operatorsManager,
            IRootFactory <SessionConfiguration> sessionConfigurationFactory)
        {
            _whiteCache = whiteCache;
            _sessionConfigurationFactory = sessionConfigurationFactory;

            operatorsManager.GetOperators();
        }
        public ContinuousConfiguration(
            IWhiteSource whiteCache,
            OperatorsManager operatorsManager,
            IRootFactory<SessionConfiguration> sessionConfigurationFactory)
        {
            _whiteCache = whiteCache;
            _sessionConfigurationFactory = sessionConfigurationFactory;

            operatorsManager.GetOperators();
        }
        public TestingProcess(
            OptionsModel optionsModel,
            IRootFactory <TestingMutant> mutantTestingFactory,
            // ------- on creation
            Subject <SessionEventArgs> sessionEventsSubject,
            ICollection <Mutant> allMutants)
        {
            _optionsModel         = optionsModel;
            _mutantTestingFactory = mutantTestingFactory;
            _sessionEventsSubject = sessionEventsSubject;

            _allMutantsCount = allMutants.Count;
            _testedNonEquivalentMutantsCount = 0;
            _testedMutantsCount = 0;

            _log.Info("Testing process: all:" + _allMutantsCount);

            _mutantsWorkers = new WorkerCollection <Mutant>(allMutants,
                                                            _optionsModel.ProcessingThreadsCount, TestOneMutant);
        }
Beispiel #8
0
        public SessionConfiguration(
            IProjectClonesManager fileManager,
            TestsLoader testLoader,
            IFactory <AutoCreationController> autoCreationControllerFactory,
            IRootFactory <SessionController> sessionFactory,
            IWhiteSource whiteCache)
        {
            _testLoader = testLoader;
            _autoCreationControllerFactory = autoCreationControllerFactory;
            _sessionFactory = sessionFactory;
            _whiteCache     = whiteCache;

            _originalFilesClone = fileManager.CreateClone("Mutants");

            _testsClone = fileManager.CreateClone("Tests");
            if (_originalFilesClone.IsIncomplete || _testsClone.IsIncomplete ||
                _testsClone.Assemblies.Count == 0)
            {
                AssemblyLoadProblem = true;
            }
        }
        public SessionConfiguration(
            IProjectClonesManager fileManager,
            TestsLoader testLoader,
            IFactory<AutoCreationController> autoCreationControllerFactory,
            IRootFactory<SessionController> sessionFactory,
            IWhiteSource whiteCache)
        {
            _testLoader = testLoader;
            _autoCreationControllerFactory = autoCreationControllerFactory;
            _sessionFactory = sessionFactory;
            _whiteCache = whiteCache;

            

            _originalFilesClone = fileManager.CreateClone("Mutants");

            _testsClone = fileManager.CreateClone("Tests");
            if (_originalFilesClone.IsIncomplete || _testsClone.IsIncomplete
                || _testsClone.Assemblies.Count == 0)
            {
                AssemblyLoadProblem = true;
            }
        }
        public TestingProcess(
            OptionsModel optionsModel,
            IRootFactory<TestingMutant> mutantTestingFactory,
            // ------- on creation
            Subject<SessionEventArgs> sessionEventsSubject,
            ICollection<Mutant> allMutants)
        {
            _optionsModel = optionsModel;
            _mutantTestingFactory = mutantTestingFactory;
            _sessionEventsSubject = sessionEventsSubject;

            _allMutantsCount = allMutants.Count;
            _testedNonEquivalentMutantsCount = 0;
            _testedMutantsCount = 0;
            //AKB
            _numberOfFirstOrderMutants = 0;
            _numberOfMarkedEq = 0;

            _log.Info("Testing process: all:" + _allMutantsCount);

            _mutantsWorkers = new WorkerCollection<Mutant>(allMutants,
               _optionsModel.ProcessingThreadsCount, TestOneMutant);
        }