Home  |  Linux  | Mysql  | PHP  | XML
From:Steve Bertrand Date:Thu Mar 11 01:43:28 2010
Subject:Writing tests for module utility scripts
Hi all,

I've got a module that has a significant number of unit tests for each
sub, each within its own file:

acct-dev: ISP-RADIUS % ls t | grep daily
07-aggregate_daily.t

Within the overall package, I've included a few utility scripts that are
installed into the OS path that utilize these subs.

Although the utility scripts are very short code-wise, I'd like to
execute tests against them for their return values, aside from the
direct testing of the methods that they call.

From within a .t test, is there a preferred way to call a script so that
it simulates the command-line itself?

Steve
Navigate in group perl.beginners at sever nntp.perl.org
Previous Next


Your recent visits
Re: use with variable
Re: 1-line text file with numbers, need to add to them
Re: Any Good SCM tool to manage Perl Code locally
Re: Any Good SCM tool to manage Perl Code locally
Re: Replacement in 3GB file



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants