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

Re: Bug#609205: ITP: libtest-file-contents-perl -- Perl module for testing the contents of files

    I have used both Test::File::Contents and (for obvious reasons) Test::Regression.

  • Test::File::Contents does not provide diffs, but Test::Regression does.
  • Test::Regression does not handle large files well as it slurps the contents in. Test::File::Content is excellant at handling large files.
  • The signature feature of Test::Regression is that it allows the reference files to be updated during a test run.

On 08/01/11 12:23, Damyan Ivanov wrote:
-=| Alessandro Ghedini, Fri, Jan 07, 2011 at 12:20:00PM +0100 |=-
Package: wnpp
* Package name    : libtest-file-contents-perl
* URL             : http://search.cpan.org/dist/Test-File-Contents/
  Description     : Perl module for testing the contents of files

Test::File::Contents provides a set of routines useful to construct
tests that examine the content of files.

It can check for an exact match and for a regexp match against the file's
contents, but also if the file's contents do not match a string or a
regexp and whether a file matches or not a given md5sum.
Is that module able to test if the contents of a given file match the 
contents of another file? Bonus points if if shows a unified diff in 
case of mismatch.

That would be useful for dh-make-perl's test suite.

Reply to: