protected function execute(InputInterface $input, OutputInterface $output) { if (null === $input->getOption('total')) { $input->setOption('total', getenv('CIRCLE_NODE_TOTAL') ?: 1); } $config = Yaml::parse(file_get_contents($input->getArgument('tests'))); $suites = (new SuiteBuilder($config))->buildSuites($input->getOption('total')); $output->writeln($this->getHelper('formater')->formatBlock(['Available suites'], 'bg=green;fg=black', true)); $output->writeln(''); $helper = new SuiteHelper($output); foreach ($suites as $suite) { $helper->renderSuite($suite); } }