[OSM-dev] C++ implementation of the API - Testing
Alex Wilson
alex_wilson at pobox.com
Wed Jun 4 08:35:14 BST 2008
Hello all,
We're having some success with the C++/apache implementation of the API - an
implementation of the map query up and running which returns appropriate
ways, nodes relations and their associated tags and members. It also seems
that the Cherokee/MonetDB version is at a similar stage.
So I thought now was a good time to talk about testing: I'm planning to
write a quick C++ xml parser to read in API generated XML and build up an
in-memory datastructure to represent the map. I'll then implement a diff
tool using this to run a semantic (rather than a char-by-char) compare
between two XML files.
With this in place, we can write a sequence of API requests covering all of
0.5 - run each query on both our new implementation and the ruby and do a
diff. Hopefully then we'll have a nice test harness to develop against.
So: does this sound like the right thing to do for testing? If so I'll try
to get this done ASAP and hopefully it'll also be useful for Stefan's
Cherokee implementation too. (Unless he already has something similar - in
which case maybe I'll borrow his instead ;-) )
Cheers,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20080604/86f0bac3/attachment.html>
More information about the dev
mailing list