in reply to Re: Test::More::ok and her ilk
in thread Test::More::ok and her ilk

We wrote those test functions all to return true or false respectively, so that the ok() ... or diag() pattern would work, for example.. It's documented in Test::More (I just checked), but it's not super obvious. I'm sure documentation patches would be welcome.

Replies are listed 'Best First'.
Re^3: Test::More::ok and her ilk
by rir (Vicar) on Sep 18, 2018 at 00:55 UTC

    My question was poorly made. There is an abundance of test programs and I am interested in the broad group of TAP emitting Perl testing programs. While I think most of the significant/popular modules follow Test::More's behaviour, I have no sound basis to support the thought. That thought is what I'd like to confirm or debunk before starting a project.

    (Update: "No sound basis"--like I don't even know which see much use.)

    I enjoyed your book with Langworth. I didn't care for the antiquing but you two delivered the high quality it was meant to suggest.

    rir

      Oh, I understand what you're asking now.

      I'm not aware of any requirement to follow this model imposed by Test::Builder or Test2, and I'm certain there's no relationship between this behavior and anything emitted as part of TAP.