Skip to content

joelmedeiros/speedracer

Repository files navigation

Getting started

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

Running tests

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

Running command

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

Improvements

  • Do not use magic numbers
  • Improve method names
  • Methods with multiple responsibility
  • Improve model/architecture

About

A simple test to read a log file using Command + Service/Repository architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published