You will need Docker and Docker-Compose installed to build this application.
Run the commands below on your favorite terminal inside the project folder:
docker-compose up -d
docker-compose exec php composer install
All tests were written using codeception library, then we need to use its commands to run all tests:
docker-compose exec php vendor/bin/codecept run
A command is available to read a log file and output the race result:
docker-compose exec php bin/console speedracer:show-results $(YOUR_FILE)
There is an example file created to support your experience.
docker-compose exec php bin/console speedracer:show-results tests/_data/race.log
- Do not use magic numbers
- Improve method names
- Methods with multiple responsibility
- Improve model/architecture