Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Keep It Simple, Stupid
 
PerlMonks  

Help needed for Test::Harness module!!!

by pijush (Scribe)
on Apr 03, 2004 at 11:28 UTC ( #342285=perlquestion: print w/ replies, xml ) Need Help??
pijush has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I have written few test scripts using Test::Harness module. Here is the scenario which I have done. I have a top level test script say test.pl which first sets few environment variable using @ISA, @EXPORT and @EXPORT_OK. After that test scripts (say test1.t, test2.t etc) are getting executed using following line
Test::Harness::runtests @tests;.
My problem is some times few scripts failed to execute test and at that moment I executed the test script individuallay after setting up environment and the script executed successfully.
Can anyone please give me any pointer why the problem arises when I am executing test.pl to run whole test suite?
Thanks in advance.
Regards
-Pijush

Comment on Help needed for Test::Harness module!!!
Re: Help needed for Test::Harness module!!!
by thelenm (Vicar) on Apr 03, 2004 at 16:20 UTC

    Since the difference between running the tests individually and running them via test.pl seems to be the environment variable setup, etc., I would guess the problem probably has something to do with that. However, without seeing some code, it's really hard to tell... could you post some actual code from test.pl, and a test that is failing to execute?

    -- Mike

    --
    XML::Simpler does not require XML::Parser or a SAX parser. It does require File::Slurp.
    -- grantm, perldoc XML::Simpler

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://342285]
Approved by valdez
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (21)
As of 2013-05-20 16:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (415 votes), past polls