bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] GSoC 2013 project on rewriting Test Suite in Python.


From: Darshit Shah
Subject: Re: [Bug-wget] GSoC 2013 project on rewriting Test Suite in Python.
Date: Tue, 17 Sep 2013 10:58:47 +0530

Hi all,

It's been nearly 2 months since the last mail and the time for Google
Summer of Code is over. I have just pushed the last commit before the
Window for the GSoC project code closes.  I want to give an overview of the
current state of the Test Suite and gain some more feedback on it.

As multiple people suggested, I should have used a script based approach as
XML wasn't very readable in the long run. I realized that quickly when
trying to read the files without my Syntax Highlighting rules. So, I took
some time off to completely revamp that part of the code and now tests are
written as python scripts. The syntax is very similar to the the old perl
based scripts, with subtle and important differences.

Apart from that, I have also tried to make the code much lighter by using a
threads to spawn a server instance, instead of the bulky multiprocessing
code earlier.

The test environment is currently in a usable state, but provides very few
features. Support for IRI, SSL and REST commands needs to be added.
However, that is not very difficult and one can easily edit the
HTTPServer.py module to add the required features.  I have tried to ensure
that the code is well documented so it should be easy to work on it.

Support for the FTP tests is a little more tricky and I will continue to
work on it and finish it.

One major advantage that this Test Suite brings over the older Perl Suite
is the support for testing the parallel-wget branch, which is quite broken
and requires a lot of refactoring work. As a result, I've been spending a
considerable amount of time in adding this support and identifying ways to
find bugs and issues in that code.

The current working code can be found on my GitHub profile[0]. The old
testenv-working and release branches are now obsolete. I have realized the
errors of my ways and learnt to use git in a better fashion now.
Please do go through the code base and let me know if there are any changes
required. Any help in adding more features to this test suite is also
appreciated! Our aim is to completely replace the Perl based tests. and I
am close to accomplishing that for HTTP requests for now.

[0] https://github.com/darnir/wget-gsoc/tree/Working


-- 
Thanking You,
Darshit Shah


reply via email to

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