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
"Connection failed because of a problem with clock synchronization"
Closing Computer Management (MMC) creates an error: Application popup: mmc.exe
Apache webserver keeps stopping
Exchange 2003: HOW TO RUN DCDIAG?
Text count in excel worksheet
In a SQL Server 2008 Express stored procedure can you return a rowset and an output parameter?
CSV
SBS2008 exchange 2007 antispam block logs ? Where are they.
Vista and SLI Config option not showing anywhere on the Nvidia Control Panel
Install Windows XP on a Linux Notebook