示例#1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $config = parent::execute($input, $output);
     $frameworks = Repository::get()->getFrameworks();
     $modules = $config->getModules();
     /** @var Module $module */
     foreach ($modules as $module) {
         /** @var Framework $framework */
         $line = $module->getName() . ' ';
         foreach ($frameworks as $framework) {
             if ($framework->validateModule($module)) {
                 $line .= " <info>{$framework->getName()}</info>";
             }
         }
         $output->writeln($line);
     }
 }
示例#2
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $config = parent::execute($input, $output);
     $framework = $input->getArgument('framework');
     $modulesRequested = $input->getOption('module');
     if (!$this->loadClasses($modulesRequested, $config, $input, $output)) {
         return;
     }
     /** @var Module $module */
     foreach ($config->getModules() as $module) {
         if ($this->checkIfRequested($modulesRequested, $module, $output)) {
             $modulePath = $module->getPath();
             $magentoPath = $input->getOption('path');
             $output->writeln('Running [' . $framework . '] tests for ' . $module->getName());
             $verbosity = $output->getVerbosity();
             $res = $this->runTestFramework($framework, $modulePath, $magentoPath, $verbosity, $input->getOption('fparam'));
             $res ? null : $output->writeln("Failed to load framework {$framework} - loader not found.");
         }
     }
 }