Skip Menu |
 

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

Report information
The Basics
Id: 19475
Status: resolved
Priority: 0/
Queue: Test-Class

People
Owner: Nobody in particular
Requestors: hpham_at_re-trac_com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Test runner die when 'use Test::Deep' within a test
Download (untitled) / with headers
text/plain 284b
If a test class use Test::Deep and if I run the test using TestClass-> runtests(), I get this error message: Test::Deep not Test::Class or integer... However, if I create an object from the test class manually, it works just fine. my $obj = MyTestCase->new; $obj->runtests
From: dmo [...] roaringpenguin.com
Download (untitled) / with headers
text/plain 682b
On Thu May 25 10:45:20 2006, guest wrote: Show quoted text
> If a test class use Test::Deep and if I run the test using TestClass-> > runtests(), I get this error message: > Test::Deep not Test::Class or integer... > > However, if I create an object from the test class manually, it works > just fine. > > my $obj = MyTestCase->new; > $obj->runtests
Test::Deep defines an 'isa' method with totally different behaviour than UNIVERSAL::isa(). So, when Test::Class::_test_classes() walks the included modules to find its subclasses, it thinks Test::Deep is a Test::Class subclass, becausse Test::Deep::isa() returns a true value. This is probably a bug in Test::Deep, not in Test::Class
Fixed in 0.15 - hitting CPAN now :-)


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.