Something about how awesome this is
When creating new thumbs for retouch:
- first create 90 (short side) thumbs:
convert -resize x90 EmilyAfter.jpg Emily.jpg
ORconvert -resize 90x EmilyAfter.jpg Emily.jpg
- then crop it:
convert Emily.jpg -gravity center -crop 90x90+0+0 +repage Emily.jpg
Everything is orchestrated with Docker and docker-compose
To build and deploy locally, simply run
docker-compose up --build
All the testing is managed by composer
. To run tests, ensure composer
is
installed, then run the desired commands from below
composer unit-test
This will not only run the unit tests, but also calculate the code coverage for the unit tests. The most useful results are displayed on the commandline, but if you want something for the record, the below reports are generated:
- junit:
reports/ut-junit.xml
- testdox:
reports/ut-results.html
- clover coverage:
reports/ut-coverage/index.html
Before you can run the integration tests, a database must be stood up to run against. If the application is deployed, that will work, otherwise, stand up a database for testing with the below:
composer integration-pre-test
One you have a database stood up to run tests against, simply run the integration tests
composer integration-test
This will not only run the integration tests, but also calculate the code coverage for the integration tests. The most useful results are displayed on the commandline, but if you want something for the record, the below reports are generated:
- junit:
reports/it-junit.xml
- testdox:
reports/it-results.html
- clover coverage:
reports/it-coverage/index.html