Re: Changing the way tests are run
Alberto Simões <[email protected]> Thu, 18 Feb 2010 17:15:39 +0000
| Newsgroups | gmane.comp.lang.perl.modules.module-build |
|---|---|
| Organization | Departamento de Informática - Universida de do Minho |
| Message-ID | <[email protected]> |
On 18/02/2010 16:42, David Golden wrote: > 2010/2/18 Alberto Simões <[email protected]>: >> So, if I change this variable when calling Test::Harness everything >> should work fine. >> >> Is there any easy way to force this under M::B? > > Subclass and override ACTION_test > > sub ACTION_test { > my $self = shift; > # do %ENV manipulation > $self->SUPER::ACTION_test > } > > In general, most custom things you might want to do should get done in > a subclass that override ACTION_* steps. Great. It works! \o/ I am too used to MakeMaker. So, I was expecting a place where to change the command line that runs the tests... shame. Thanks Alberto -- Alberto Simões