bin 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Codeception CLI
  4. */
  5. use Codeception\Application;
  6. $app = new Application('Codeception', Codeception\Codecept::VERSION);
  7. $app->add(new Codeception\Command\Build('build'));
  8. $app->add(new Codeception\Command\Run('run'));
  9. $app->add(new Codeception\Command\Init('init'));
  10. $app->add(new Codeception\Command\Console('console'));
  11. $app->add(new Codeception\Command\Bootstrap('bootstrap'));
  12. $app->add(new Codeception\Command\GenerateCept('generate:cept'));
  13. $app->add(new Codeception\Command\GenerateCest('generate:cest'));
  14. $app->add(new Codeception\Command\GenerateTest('generate:test'));
  15. $app->add(new Codeception\Command\GenerateSuite('generate:suite'));
  16. $app->add(new Codeception\Command\GenerateHelper('generate:helper'));
  17. $app->add(new Codeception\Command\GenerateScenarios('generate:scenarios'));
  18. $app->add(new Codeception\Command\Clean('clean'));
  19. $app->add(new Codeception\Command\GenerateGroup('generate:groupobject'));
  20. $app->add(new Codeception\Command\GeneratePageObject('generate:pageobject'));
  21. $app->add(new Codeception\Command\GenerateStepObject('generate:stepobject'));
  22. $app->add(new Codeception\Command\GenerateSnapshot('generate:snapshot'));
  23. $app->add(new Codeception\Command\GenerateEnvironment('generate:environment'));
  24. $app->add(new Codeception\Command\GenerateFeature('generate:feature'));
  25. $app->add(new Codeception\Command\GherkinSnippets('gherkin:snippets'));
  26. $app->add(new Codeception\Command\GherkinSteps('gherkin:steps'));
  27. $app->add(new Codeception\Command\DryRun('dry-run'));
  28. $app->add(new Codeception\Command\ConfigValidate('config:validate'));
  29. $app->registerCustomCommands();
  30. // add only if within a phar archive.
  31. if ('phar:' === substr(__FILE__, 0, 5)) {
  32. $app->add(new Codeception\Command\SelfUpdate('self-update'));
  33. }
  34. $app->run();