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.