Re: testing for unsuccessful require - mocking require ?

2004-06-19 Thread Kate L Pugh
On Sat 19 Jun 2004, Gabor Szabo <[EMAIL PROTECTED]> wrote: > I would like to test a module for unsuccessful "require" while the > required module is installed. That is I'd like ot test how my code would > work if Foo.pm was not present. Max Maischein wrote Test::Without::Module to do this. (This

Re: whats the 'right way' to test for output on STDERR

2003-11-20 Thread Kate L Pugh
On Thu 20 Nov 2003, Jim Cromie <[EMAIL PROTECTED]> wrote: > im patching a module that uses Test::More, and I want to include a test > to prove that a carp is being called when function args are wrong. > > I half-expected to find a stderr_like() that would do the trick. Test::Warn has warning_like

Using environment variables to control long running tests (again)

2003-11-18 Thread Kate L Pugh
This was discussed on this list back in June. I'm wanting to implement it now and am wondering if Andrew's suggestion (below) has been taken up by anyone. Is PERL_TEST_LONG what people here generally expect to be the right environment variable to set to enable long-running tests? (I know I could