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!!!

Replies are listed 'Best First'.
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