Improve an an existing project :
- PHP 7.2
- Symfony 3.4
- Doctrine
- Ramsey/uuid-doctrine
- Doctrine-fixtures
- Behat
- Behat-code-coverage
-
Download project :
https://github.com/ludovicjj/projet8-TodoList.git
-
Install Dependencies :
composer install
-
Database config :
Update file parameters.yml.dist with your config and rename it into "parameters.yml"
parameters: database_host: 127.0.0.1 database_port: ~ database_name: symfony database_user: root database_password: ~
-
Create Database :
php bin/console doctrine:datase:create php bin/console doctrine:schema:update --force
-
Fixtures :
php bin/console doctrine:fixtures:load
-
Project launch :
php bin/console server:run
-
First, run project with the following command and go to ^/login
php bin/console server:run
-
Use these credentials to test admin features :
username: admin password: admin
-
Or use these credentials to test user features :
username: user1 password: user1
-
Create database for the test env with the following command :
php bin/console doctrine:database:create --env=test
-
Run test with the following command :
vendor/bin/behat
-
Behat-code-covarge require Xdebug, download Xdebug and enable it in php.ini. Code-coverage will be generated in var/behat-coverage, open with your browser var/behat-coverage/index.html