thegreenwebfoundation / greencheck-api

The green web foundation API
https://www.thegreenwebfoundation.org/
Apache License 2.0
9 stars 3 forks source link

Add fixtures and phpunit/phpspec tests for greencheck library #1

Closed arendjantetteroo closed 5 years ago

arendjantetteroo commented 5 years ago

We have tests for greencheck, but before we can run these on CI, we need to be able to run them locally.

Running them locally

Install the dependencies:

composer install

Set up the connections and config

Update the config with the connection details for Redis and MySQL/ MariaDB.

You will need to set up database tables in a mysql database you have created my calling:

php ./tests/doctrine-cli.php orm:schema-tool:create

Then run the tests

bin/phpunit -c configuration.xml
arendjantetteroo commented 5 years ago

See #10 for the fixtures and phpunit tests.

mrchrisadams commented 5 years ago

Hey AJ, I'd like to close this issue. 👍 ?

arendjantetteroo commented 5 years ago

Go for it

Op di 30 apr. 2019 19:31 schreef Chris Adams notifications@github.com:

Hey AJ, I'd like to close this issue. 👍 ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/thegreenwebfoundation/thegreenwebfoundation/issues/1#issuecomment-488042955, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFOC2XOWVAC77UCELTSWVDPTB66PANCNFSM4G55NF4Q .