hackersatbrown/api-morning-mail — pull request #5 by jswarren (2012-12-15 03:25:48+00:00)
Title: Testing framework and data

There are test xml files for 12-13 with days=1 to 12-13 with days=7 for both feed=all and feed=undergrad. This should give us a good amount of data to start with. At this point, I've created a Cakefile which will map the xml files into the resulting json files that we want, and I've created all of the result files for all 20 of the current tests in test/posts.coffee. These test different ways to fetch "today", as well as ranges and retrieving specific posts by id.

The server is set up to do some very simple request handling. Right now, requests come in, a test xml file is loaded and it's translated to json, but not the way it should be, so none of the tests are passing right now. The xml parsing code in the Cakefile can be used as a starting point for implementing the xml to json translation.