Microsoft
Software
Hardware
Network
Question : perl Test::Harness - FAILED--no tests were run for some reason
I have a batch program that runs test::harness and just recently I started getting this error:
FAILED--no tests were run for some reason
The test::harness is called from a batch file with the following command:
perl -I.. -Mlow_priority -MTest::Harness -e "$Test::Harness::switches=
'-I.. -I../tbuilder/lib'; my $ret = 0; my @tests = <%1*.t>; if( (localtime)[6] == 6 ){ @tests = grep /^weekly/i ,@tests; } else { @tests = grep !/^weekly/i, @tests; } eval{ $ret = runtests(@tests); }; if($@){ print $@; } " 2>&1 | perl _store_tests.pl daily_tests | perl _format_tests.pl | perl _email_tests.pl %MAIL_SERVER%
[email protected]
%EMAIL% "PulseCheck Testing (%DATE% %TIME%) for %COMPUTERNAME% %SERVER_NAME%" 2> testing_mail.err
The <%1*.t> represents all files in the cwd with a dot ".t" extension which are my test programs. For some reason I believe that it is not working because nothing seems to be executing.
Any ideas or suggestions here would be great. I also attached the .pl programs in the statement.
The run_tests.txt is the bat file that executes the command above.
Answer : perl Test::Harness - FAILED--no tests were run for some reason
Instead of <%1*.t>, try <*.t>
Random Solutions
os.system() not passing command line properly
Ad network that allows you to choose the ads posted?
kernel_stack_inpage_error on Windows Server 2003
Outlook 2007 - Create Rule to Save Attachments
UDF unable to load Java class. What do I need to do to make this work?
Exchange 2003 SP2\Activesync question
VPN set up between sites with the same IP subnet (192.168.1.0), can this work using the Check Point VPN client
Sendmail Log Incoming & Outgoing Email With Ease
What is my SID? host?
How Do I create pivot query in t-sql for I-Anywhere