Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^2: RFC: Basic Testing Tutorial

by hippo (Chancellor)
on Jul 11, 2019 at 09:53 UTC ( #11102672=note: print w/replies, xml ) Need Help??

in reply to Re: RFC: Basic Testing Tutorial
in thread RFC: Basic Testing Tutorial

Thanks, stevieb. I've added in an example of skip now as that is definitely worth bringing to the beginner's attention.

Regarding the error trapping, if anything I'd be more inclined to steer the new tester towards Test::Exception or Test::Fatal rather than rolling their own. What's your reasoning for using the bare eval instead?

Replies are listed 'Best First'.
Re^3: RFC: Basic Testing Tutorial
by stevieb (Canon) on Jul 11, 2019 at 14:36 UTC
    "What's your reasoning for using the bare eval instead?"

    Habit, less prerequisites in my distributions, and less abstraction. I'm not saying that a distribution isn't a good idea, I just avoid going that route where I can.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2020-02-23 08:41 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (102 votes). Check out past polls.