Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: Testing Perl files rather than modules

by Erez (Priest)
on Sep 17, 2008 at 07:55 UTC ( #711915=note: print w/replies, xml ) Need Help??

in reply to Re: Testing Perl files rather than modules
in thread Testing Perl files rather than modules

Also, if you are serious about testing an perl (and about testing in perl), then Perl Testing: A Developer's Notebook(ISBN 9780596100926) is, IMO, a must.

Stop saying 'script'. Stop saying 'line-noise'.
We have nothing to lose but our metaphors.

  • Comment on Re^2: Testing Perl files rather than modules

Replies are listed 'Best First'.
Re^3: Testing Perl files rather than modules
by jvector (Friar) on Sep 17, 2008 at 23:30 UTC

    I too have had a recent epiphany "must get serious about testing". So I bought this book too.</p.

    And I was left with "... but how do I get "there" from "here"??. Because it does tend to start with

    use YourMod::YourStuff;

    ... which is not very handy if you are not in a modularized position to begin with.

    I got a great tip from gabszab which suited my current situation (big monolithic CGI script), which was 'invoke the whole thing from your test and use cmp_ok ', but that's another subject (although it might help in our situation?).

    This signature will be ready by Christmas

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://711915]
[Discipulus]: too much guns in schools? throw more gun at schools! professors in arms
LanX thinks teachers nowadays need every possible mean to defend against their annoying students.

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2018-02-23 11:35 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (301 votes). Check out past polls.