[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: http-post

From: Noah Lavine
Subject: Re: http-post
Date: Wed, 9 May 2012 22:22:03 -0400


> To write a test for http-post, I thought I'd model it on a test for
> http-get.  However, there isn't one - 'http-get' doesn't appear
> anywhere in test-suite/ (on master branch as of 4105f).  'run-server'
> isn't in there either.  So is a test needed for all of these?  Perhaps
> something that starts up a simple server like the example in the
> documentation, binds it to some port, and sends a few requests with
> 'http-get' and 'http-post' to see if they come back correctly?

Yes, I like that idea. At least our procedures will be consistent with
themselves. :-)

You shouldn't work too hard writing tests for code that you didn't
write, but it sounds like the best way to test your code is to feed
its results to the web server.

Thanks for working on this,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]