codecept 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/usr/bin/env php
  2. <?php
  3. /**
  4. * Codeception CLI
  5. */
  6. require_once __DIR__.'/autoload.php';
  7. use Codeception\Application;
  8. $app = new Application('Codeception', Codeception\Codecept::VERSION);
  9. $app->add(new Codeception\Command\Build('build'));
  10. $app->add(new Codeception\Command\Run('run'));
  11. $app->add(new Codeception\Command\Init('init'));
  12. $app->add(new Codeception\Command\Console('console'));
  13. $app->add(new Codeception\Command\Bootstrap('bootstrap'));
  14. $app->add(new Codeception\Command\GenerateCept('generate:cept'));
  15. $app->add(new Codeception\Command\GenerateCest('generate:cest'));
  16. $app->add(new Codeception\Command\GenerateTest('generate:test'));
  17. $app->add(new Codeception\Command\GenerateSuite('generate:suite'));
  18. $app->add(new Codeception\Command\GenerateHelper('generate:helper'));
  19. $app->add(new Codeception\Command\GenerateScenarios('generate:scenarios'));
  20. $app->add(new Codeception\Command\Clean('clean'));
  21. $app->add(new Codeception\Command\GenerateGroup('generate:groupobject'));
  22. $app->add(new Codeception\Command\GeneratePageObject('generate:pageobject'));
  23. $app->add(new Codeception\Command\GenerateSnapshot('generate:snapshot'));
  24. $app->add(new Codeception\Command\GenerateStepObject('generate:stepobject'));
  25. $app->add(new Codeception\Command\GenerateEnvironment('generate:environment'));
  26. $app->add(new Codeception\Command\GenerateFeature('generate:feature'));
  27. $app->add(new Codeception\Command\GherkinSnippets('gherkin:snippets'));
  28. $app->add(new Codeception\Command\GherkinSteps('gherkin:steps'));
  29. $app->add(new Codeception\Command\DryRun('dry-run'));
  30. $app->add(new Codeception\Command\ConfigValidate('config:validate'));
  31. // Suggests package
  32. if (class_exists('Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand')) {
  33. $app->add(new Codeception\Command\Completion());
  34. } else {
  35. $app->add(new Codeception\Command\CompletionFallback());
  36. }
  37. $app->registerCustomCommands();
  38. $app->run();