Urs Holzer <u...@andonyar.com> wrote:

> 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.

Adding this to curl's test suite seems trivial compared to
writing an entirely new test suite.

> - 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.

Same here.

> - Polipo's configuration can be customized for each test case.

I believe that's already possible (but haven't actually tested it).

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

I agree with David that this is a rather significant limitation.

Having said that, once there are more tests I'll certainly give
your test suite a closer look as it might be useful for Privoxy
testing.

> What do you think?

If you are going to work on a new test suite, in my opinion it would
make sense to concentrate on tests that aren't already covered by curl's
test suite anyway and can't be easily added.

That's what I did (or at least tried to do) with Privoxy's regression
test suite which mostly tests Privoxy-specific behaviour that would
be non-trivial to test with the constraints of curl's test suite:
http://ijbswa.cvs.sourceforge.net/viewvc/ijbswa/current/tools/privoxy-regression-test.pl?view=markup
http://ijbswa.cvs.sourceforge.net/viewvc/ijbswa/current/regression-tests.action?view=markup

As your test format seems to be rather similar to curl's test format
already, it would probably also make sense to aim for complete compatibility
so curl's tests work with your framework unmodified.

Fabian

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
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
_______________________________________________
Polipo-users mailing list
Polipo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to