Hello, I want to ask about Unit test of Wget in the future.
I want to ask about unit test.

Now unit test of Wget is written only for following .c files.
 -- http.c init.c main.c res.c url.c utils.c (test.c)

So as written in Wiki, new unit test suite is necessary.
   (ref. http://wget.addictivecode.org/FeatureSpecifications/Testing)

In order to make new unit test suite, I think following work is necessary.

 1) Select functions which can be tested in unit test.
    But How can I select them? is difficult.
    Basically the less dependency the function has, more easy to
    include in unit test, but about boundary line, I'm not sure.

 2) In order to do above 1), How about Making a list of all functions
    in Wget? and maintain?

    The advantage of 2) is ...
        * make clear which function is included in Unit test
        * make clear which function is _not_ in Unit test
        * make easy to manage testing
        * make easy to devide testing work

    So once this list is done, it would become easier to maintain
    testing schedule, progress, etc.. And when Unit test suite is
    done, this list should be able to be generated automatically...
    and to do regression test, all we do is just run Unit test again :)

 3) Contents of list I come up is following:

     * Wget version num
     * Filename
     * function name
     * Included in Unit Test or not
     * Simple Call graph of the function


So let me ask your opinions.
And is there any suggestion about unit test of Wget?
(test tools, other preliminary work for unit test, how manage it ...)

Thank you for your time.

-- 
Yoshihiro TANAKA

Reply via email to