Running unit tests in current CVS

Francis J. Lacoste flacoste at logreport.org
Fri Jan 31 23:13:33 CET 2003


Hello everyone,

The current CVS contains several unit tests which we added as part of
the DLF converter API upgrading. Unit tests makes it easier to 
modify the internals while maintaining confidence that everything
still holds together.

In order to run the tests, you need to install the Test::Unit module
which is available from CPAN. (Which in turns needs the Error and
Class::Inner modules). 

For the many Lire developers who use Debian, you can get the required
packages by adding the following to your sources.list :

deb http://apt.contre.com sarge/all

You'll find there the libtest-unit-perl and libclass-inner-perl packages
(liberror-perl is already available in testing/unstable). The
libtest-unit-perl package available in testing/unstable is a too old
version. My package also contains an important bug fix for the released
Test::Unit module (was also sent to upstream).

Once you have the libtest-unit-perl package installed, you can use run
all unit tests from the Lire top-level source directory like this:

$ PERL5LIB=all/lib TestRunner tests::all

Test cases for a particular module can also be run:

$ PERL5LIB=all/lib TestRunner tests::OldDlfAdapterTest

Some documentation on writing unit tests was put in the developers
manual, but the documentation included in the Test::Unit package is more
complete. You can also look at the current unit tests for other
practical examples.


Francis J. Lacoste

-- 
Francis J. Lacoste              . .           http://www.logreport.org
/^LogReport$/               . .               flacoste at logreport.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.logreport.org/pipermail/development/attachments/20030131/4e5ea999/attachment.bin 


More information about the Development mailing list