Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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?
[Corion]: First World Problems - on my new desk, the sun shines in my face :)
[LanX]: damn sun ...blame Ophelia!
[choroba]: Yesterday, I gave Ramirez a headshot through the gate in Aztec. LOL. What happened to you? WTF? Sun. There was a hole in the window foil.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2017-10-18 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (245 votes). Check out past polls.

    Notices?