Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Wrapping Test::More assertions in Test::More utility classes?

by tobyink (Abbot)
on Sep 25, 2012 at 16:43 UTC ( #995592=note: print w/ replies, xml ) Need Help??


in reply to Wrapping Test::More assertions in Test::More utility classes?

You're on the right track with Test::Builder. You are right that Test::Builder doesn't use Test::More. In fact, the inverse is true: Test::More is based on Test::Builder.

Take a look at, say, Test::Warn and see how it uses Test::Builder to create a set of extra testing keywords that plays nicely with Test::More.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'


Comment on Re: Wrapping Test::More assertions in Test::More utility classes?
Replies are listed 'Best First'.
Re^2: Wrapping Test::More assertions in Test::More utility classes?
by silkybones (Initiate) on Sep 26, 2012 at 14:29 UTC
    Thanks, I'll look at that.

    Also, so it seems like creating the type of object I mention actually works to my surprise. I'll assume for now that creating more than one of these objects, in different threads for example, might confuse Test::More. We'll see. I'll post here with updates.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995592]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (18)
As of 2015-07-29 17:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (266 votes), past polls