Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id:
19475
Status:
resolved
Priority:
Low/Low
Queue:

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

BugTracker
Severity:
Important
Broken in:
(no value)
Fixed in:
(no value)



Subject: Test runner die when 'use Test::Deep' within a test
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
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 runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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