Tests

Urs Holzer <[email protected]>
Newsgroups gmane.comp.web.polipo.user
Message-ID <[email protected]>
Hi

David recently suggested to run Curl's test suite againts Polipo. I 
decided to implement a similar approach in Python. It is available on 
Github:

https://github.com/uholzer/polipo/tree/tests

Advantages over Curl's test suite:
- The data sent by Polipo to the server and to the client are both 
tracked.
- The behaviour of the client and the server can be controlled tightly, 
for example sending a request in steps instead of all at once is 
possible.
- Polipo's configuration can be customized for each test case.

Disadvantage:
- There are no test cases. Adapting Curl's test cases should be possible 
but is not trivial.

Running a testcase is done by invoking
./runtests.py N
where N is the number of the test case. (Look into the directory "data" 
for the test cases.) For now, one can only run a single test case per 
invocation. The data Polipo sends is not yet verified and handling of 
other errors (like timeouts) is still missing. Generally, it needs more 
work, but its a start.

What do you think?

Greetings
Urs


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.