-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests #1
Comments
Codeception seems to be a really nice test suite for API, with the ApiGuy class:
|
Its nice, but the syntax isn't very nice to look at or read. Potentially use something like spectrum ? |
I tried Codeception for testing some REST API in my application and it was nice. As it is based on PHP classes in intentions, it has nice working autocomplete in IDE. I've also found that Behat could be used for testing API, here is article: http://keithloy.me/blog/2012/05/02/testing-rest-api-with-behat/ |
Yeah, I'm not a huge fan of the syntax, but it is exceptionally clear what is happening, and is purpose-specific to testing a Rest API; it supports all of the tests I want to do out of the box. Spectrum is nice for unit testing and functional testing of modules, which is not what I want to implement at first. As this is a more of a seed/boilerplate project, not a library, unit testing will be left to the implementer. I'll write up the first few tests over the weekend and see how nice it is to work with. |
This needs tests.
The text was updated successfully, but these errors were encountered: