https://github.com/geobas/minimal-symfony
A minimal project written in Symfony 2.8
https://github.com/geobas/minimal-symfony
symfony2 unit-testing
Last synced: 2 months ago
JSON representation
A minimal project written in Symfony 2.8
- Host: GitHub
- URL: https://github.com/geobas/minimal-symfony
- Owner: geobas
- Created: 2016-06-06T19:31:43.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-11T22:30:35.000Z (over 9 years ago)
- Last Synced: 2025-04-09T06:14:06.735Z (about 1 year ago)
- Topics: symfony2, unit-testing
- Language: PHP
- Size: 592 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A minimal project written in Symfony 2.8 just for educational purposes.
It demonstrates Entities, Controllers, Views, Validation using annotations, CRUD generator, Form Validation,
Unit & Functional testing with fixtures.
## Set up
1. `git clone git@github.com:geobas/minimal-symfony.git`
2. Run `composer update`
3. Run `app/console doctrine:database:create && app/console doctrine:schema:create && app/console doctrine:fixtures:load` from application's root folder.
## Set up unit & functional testing
1. Run `app/console doctrine:database:create --env=test && app/console doctrine:schema:create --env=test && app/console doctrine:fixtures:load --env=test` from application's root folder.
## Run tests
1. Install [entr](http://entrproject.org) to automatically run tests when something changes
2. Execute `find src/ | entr -c phpunit -c app/ src/Lynda/MagazineBundle/Tests` from application's root folder.
## Generate code coverage report after unit tests have run
Execute `phpunit -c app/ --coverage-html cov/`