As you may have heard, @em-ant, @Greenheart, and @systimotic have been hard at work building projects with testable user stories. We are looking for a few volunteers to attempt to build these based on their automated tests.
The goal is for campers to be able to build these projects step by step following user stories. This will make the projects less intimidating and more fun. Oh, and donāt worry - weāll still have plenty of optional projects where we donāt provide you with any tests. And if youāve previously built these projects, you donāt need to build them again.
If youāre interested in attempting this, please reply to the thread and let us know youāve started it. The more people who want to build this, the better, as we can start gathering feedback.
Iām going to start this project today. Iāll be using a custom domain name, so Iāll have to add some routes just for the purpose of the automated tests hitting them.
Is there any chance that the option to customize the API endpoints could be added? For example, to cause the automated tests to optionally GET [base url]/[short url] instead of GET [base url]/api/shorturl/[short url]? I know itās an edge case, but it might be nice for people who are hosting on platforms other than hyperdev.
I had some trouble getting the last test (5. Invalid URL) to pass. I was returning a json object of the correct format, but I was also setting the HTTP status of the response to 400. The test wouldnāt pass until I returned a response with a 200 status. It seems to me that a 400 status would be more appropriate in the case of the client passing an invalid URL. Would it be possible to have the automated test check for the correct json regardless of the status?
I just finished the url shortener service (just on c9 so far - have not yet hooked it up to Heroku) and would like to contribute to the project if I can. What is the first step? How does this work?
Thanks for the note about the response status codes! I was also using 400/404 status codes to handle invalid requests and this prevented the last test from passing. Frustratingā¦