Open chrisdavenport opened 9 years ago
I have drafted what could possible be the base for testing the webservices using Codeception Testing Framework
. The com_contacts test would look like: https://github.com/redCOMPONENT-COM/redCORE/blob/develop/tests/api/ContactsCest.php. I think tests are very readable. How does it look to you?
I can integrate the tests to be automatically executed by TravisCI on every pull request:
you can see in action at https://travis-ci.org/redCOMPONENT-COM/redCORE/jobs/68289172
Nice work. :-)
If you could submit a PR and point us to some instructions on how to run the tests locally, that would be a great starting point. Thanks Javier.
We need to start writing unit and system tests as soon as possible. Ideally we need to be moving towards test-driven development.