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
Sybase stored procedure: Problem when loading stored procedure containing a temp table.
Configuring onboard audio in Linux
ODBC timeout issue with access connecting to an SQL database
ApacheModuleSSL.dll not found
Sybase Output to variable filename
Outlook 2000 inserts blank attachments automatically
"Work Offline" dialog box appears when Windows Explorer 'File' button selected
Exchange 2003 Enterprise Offline Defrag
Seeking recommendations for newsletter software I can run on a Linux server.
It can't happen but it did :-)