Test::Tail::Multi

Test::Tail::Multi is a Perl module to execute code, monitor dynamic file contents.
Download

Test::Tail::Multi Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Joe McMahon
  • Publisher web site:
  • http://search.cpan.org/~mcmahon/Class-AutoPlug-0.02/lib/Class/AutoPlug/Pluggable.pm

Test::Tail::Multi Tags


Test::Tail::Multi Description

Test::Tail::Multi is a Perl module to execute code, monitor dynamic file contents. Test::Tail::Multi is a Perl module to execute code, monitor dynamic file contents.SYNOPSIS use Test::Tail::Multi files => tests=>2; # Can add files dynamically as well add_file('file3', "decided to add file3 too"); # Execute a command and check against output contents_like {system('my_command -my_args")} # Note no trailing comma! qr/expected value/, "got the expected output"); # if code to execute is undef, check against previously captured new content contents_unlike undef, # trailing command REQUIRED qr/unexpected text/, "unexpected stuff not found in same text"); # Shorten the delay to 1 second. delay(1, "Now a 1 second delay"); contents_like(sub {system('fast_command')}, # trailing comma in parens qr/expected/, "this command runs faster");Test::Tail::Multi allows you to create tests or test classes that permit you to monitor the contents of one or more files a la < tail -f > using the nice File::Tail module. You can execute arbitrary code and then run tests versus the new content in the files.If you choose, you can run multiple tests against the same content by passing undef as the code to be executed; Test::Tail::Multi will then reuse the contents it last extracted.You can also adjust the delay time to be used to allow the code you called to "settle down" before checking the tails.Test::Tail::Multi comes in handy for those testing jobs that require you to monitor several files at once to see what's happening in each one. Requirements: · Perl


Test::Tail::Multi Related Software