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…