Skip Menu |
 

This queue is for tickets about the Test-Class CPAN distribution.

Report information
The Basics
Id: 72896
Status: new
Priority: 0/
Queue: Test-Class

People
Owner: Nobody in particular
Requestors: SHAW [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.36
Fixed in: (no value)



Subject: Setup/Startup Methods Can't Be Overridden
Download (untitled) / with headers
text/plain 543b
Startup/setup methods in base classes that are overridden by subclasses are still called. For example: package PigTest; use base 'Test::Class'; sub startup : Test(startup) { $self->{fixture} = PigService->create($argz) } sub eats : Test { } package PorkyPigTest; use base 'PigTest'; sub startup : Test(startup) { $self->{fixture} = PorkyPigService->create($argz) } sub talks : Test { } PigService will be called when running the PorkyPigTest. Of course this is simple to fix, but it's surprising and unintuitive. -Skye


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.