Closed tmcw closed 13 years ago
There are basic tests of the mathy bits in the python code from which Modest Maps JS was ported - we should use those (though the exact number results will vary slightly).
I've used http://visionmedia.github.com/expresso/ for node.js testing before and found it pretty good. It doesn't do browser side stuff though.
On 5 May 2011 16:48, tmcw reply@reply.github.com wrote:
Untethering some parts of Modest Maps from the DOM (#23) would make it easier to unit test or integration tests parts of Modest Maps. Unclear what testing frameworks would be involved - I can do a bit of research in that area, and see if there's something that'll work both in node and on the web.
Reply to this email directly or view it on GitHub: https://github.com/stamen/modestmaps-js/issues/27
Cool. I've ported the relevant tests from modestmaps-py to the tests branch - the only catch is that this work was dependent on writing a little stub to add nodejs module exports, and I didn't commit this since it's a separate issue and will probably die in a merge with that. I'll work on a quick branch with just that work so that it can get in.
Untethering some parts of Modest Maps from the DOM (#23) would make it easier to unit test or integration tests parts of Modest Maps. Unclear what testing frameworks would be involved - I can do a bit of research in that area, and see if there's something that'll work both in node and on the web.