joomla-projects / webservices

Webservices working group repository
GNU General Public License v2.0
16 stars 9 forks source link

Testing #9

Open chrisdavenport opened 9 years ago

chrisdavenport commented 9 years ago

We need to start writing unit and system tests as soon as possible. Ideally we need to be moving towards test-driven development.

javigomez commented 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:

screen shot 2015-06-25 at 11 36 36

you can see in action at https://travis-ci.org/redCOMPONENT-COM/redCORE/jobs/68289172

chrisdavenport commented 9 years ago

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.