Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^8: Developing a module, how do you do it ?

by chromatic (Archbishop)
on Mar 04, 2012 at 05:48 UTC ( [id://957728]=note: print w/replies, xml ) Need Help??


in reply to Re^7: Developing a module, how do you do it ?
in thread Developing a module, how do you do it ?

So now you've got to invent names for all your tests. Just so you can search for that name to find the test?

No; read the documentation, or at least the output tobyink posted.

... which could be Autoloaded...
And if I use Carp::cluck or Carp::confess...
And if I need to pause the test at some point -- for example, so that I can attach a (C-level) debugger -- I can just stick a <STDIN> in there.

All of those things are possible with Test::Builder and friends too, without you having to edit your test files when you want to debug them. Sorry, "if" you want to debug them.

It doesn't force-fit me into a single one-size-fits-all methodology...

Repeating that ad nauseum doesn't make it true.

  • Comment on Re^8: Developing a module, how do you do it ?

Replies are listed 'Best First'.
Re^9: Developing a module, how do you do it ?
by BrowserUk (Patriarch) on Mar 04, 2012 at 05:57 UTC
    All of those things are possible with Test::Builder

    Last month it was Test::Simple.

    Last week Test::More.

    Yesterday Test::Most.

    Today Test::Builder.

    Tomorrow? Test::Simple::Factory::Most::Builder::More.

    Next month ....?

    When the tail starts wagging the dog, it is time to dock it.

    I don't need Yet Another Layer of tooling to give me back, what I always had from the get go.

    Repeating that ad nauseum doesn't make it true.

    It is true, repeated or not.

    The fact that you are so invested in this asinine technology that you can't see it for yourself, makes repetition necessary.

    (Will you ever stick to facts, rather than resort to cheap distractions?)


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

      Test::Simple and Test::More and Test::Most are all built on Test::Builder and have been for ten and a half years. (Well, Test::Most for all of its three and a half year life.)

      Will you ever stick to facts....

      They've been in the documentation for a decade. I don't know how to make them any clearer to you.

      I don't care if you don't use them or don't like them, but spreading FUD about them when you don't know much about them is irresponsible.

        Test::Simple and Test::More and Test::Most are all built on Test::Builder and have been for ten and a half years.

        Many layers of guano, don't smell any better than one.

        Adding multiple layers, to give me back a piss-poor emulation of what I had to start with, for the sake of producing a bunch of useless, pointless, vacuous statistics I have no use for, is an exercise in pure futility.

        I don't use these tools because they don't buy me anything I need or have use for. Nothing. Zip. Nada.

        And in the process of doing that nothing, they make every other thing I want to do 10 times harder.

        - - - Repeating that ad nauseum doesn't make it true.

        - - (Will you ever stick to facts, rather than resort to cheap distractions?)

        -They've been in the documentation for a decade

        Once again, your response does not relate to what you quote. Cheap diversionary tactics.

        I don't know how to make them any clearer to you.

        Why are you trying?

        I described *my* way of working for the OP. Your way is described all over. *He* can choose what suits him.

        Strikes me that if you're getting this defensive, you must see the flaws too, but are just in denial about them.


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

        The start of some sanity?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-24 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found