Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 2.81 KB

File metadata and controls

61 lines (48 loc) · 2.81 KB

Developer Reference

Central quick-reference for day-to-day Catroweb development.

Core Console Commands

Command Purpose
bin/console list List Symfony console commands
bin/console about Show environment/runtime information
bin/console catrobat:reset --hard Recreate DB, seed data, clear cache
bin/console doctrine:migrations:status Show migration status
bin/console doctrine:migrations:migrate Run pending migrations
bin/console doctrine:migrations:diff Generate a migration from entity changes
bin/console cache:clear Clear default cache
bin/console cache:clear --env=test Clear test cache

Testing Quick Commands

Command Purpose
bin/phpunit tests Run PHPUnit test suite
bin/behat Run all Behat suites
bin/behat -s <suite> Run one Behat suite
bin/behat -f pretty Run Behat with detailed output
bin/behat path/to/file.feature Run scenarios from one feature file
bin/behat path/to/file.feature:<line> Run one scenario by line number

If you use Docker locally, prefix commands with:

docker exec -it app.catroweb <command>

Example:

docker exec -it app.catroweb bin/phpunit tests

Frontend / Tooling Commands

Command Purpose
yarn test Run all configured static checks
yarn fix Apply automatic fixes where supported
yarn dev Build frontend assets for development
yarn watch Rebuild assets on file changes
yarn build Build production assets

External Documentation