Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: RFC: Runnable test code integrated into Modules.

by adrianh (Chancellor)
on Jan 30, 2003 at 11:27 UTC ( [id://231261]=note: print w/replies, xml ) Need Help??


in reply to RFC: Runnable test code integrated into Modules.

You might be interested in Test::Inline, which puts test in special POD comments and is cute.

There's also Test::Extreme which also inlines tests (but isn't cute in my opinion)

Personally, I'm not to enamoured of inline tests since I find it makes refactoring test suites harder... but other people seem to like it ;-)

  • Comment on Re: RFC: Runnable test code integrated into Modules.

Replies are listed 'Best First'.
Re: Re: RFC: Runnable test code integrated into Modules.
by dda (Friar) on Sep 13, 2003 at 11:48 UTC
    adrianh, could you explain why do you think Test::Extreme is not cute? I was going to use it, but noticed your comment... :)

    --dda

      Basically because it ignores Test::Builder, and the modules built with it.

      So we have yet another set of testing functions (assert_somethingorother in Test::Extremes case), and no way of adding new kinds of test to the framework easily. Test aren't named either which makes using large test suites a complete pain.

      It also slightly annoys me by saying it's in an xUnit style when it doesn't do most of the things that an xUnit framework does (setting up of test fixtures, composition of test suites, etc.). This kind of thing isn't "OO cruft" as it says in the documentation - they're tools that make some kind of testing a lot easier.

      If you need things like text fixtures then Test::Extreme won't do the job. If you don't need them then there are better testing tools available with Test::More and friends.

      All IMHO of course ;-)

        Thanks, that makes sense for me. And let me 'use' your one more time: what do you think about Test::Unit suite? Is it cute?

        --dda

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-25 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found