ParaTest\Runners\PHPUnit\Runner::run PHP Method

run() public method

The money maker. Runs all ExecutableTest objects in separate processes.
public run ( )
    public function run()
    {
        parent::run();
        while (count($this->running) || count($this->pending)) {
            foreach ($this->running as $key => $test) {
                if (!$this->testIsStillRunning($test)) {
                    unset($this->running[$key]);
                    $this->releaseToken($key);
                }
            }
            $this->fillRunQueue();
            usleep(10000);
        }
        $this->complete();
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Executes the PHPUnit Runner. Will Display help if no config and no path
  * supplied
  *
  * @param InputInterface $input
  * @param OutputInterface $output
  * @return int|mixed
  */
 public function execute(InputInterface $input, OutputInterface $output)
 {
     if (!$this->hasConfig($input) && !$this->hasPath($input)) {
         $this->displayHelp($input, $output);
     }
     if ($input->getOption('runner') === 'WrapperRunner') {
         $runner = new WrapperRunner($this->getRunnerOptions($input));
     } else {
         $runner = new Runner($this->getRunnerOptions($input));
     }
     $runner->run();
     return $runner->getExitCode();
 }
All Usage Examples Of ParaTest\Runners\PHPUnit\Runner::run