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

Re^2: Adding Tests to Mature Web App

by skx (Parson)
on Aug 09, 2006 at 16:06 UTC ( [id://566433]=note: print w/replies, xml ) Need Help??


in reply to Re: Adding Tests to Mature Web App
in thread Adding Tests to Mature Web App

I'd second this comment.

I took over a large and mostly monolithic application. At the time there were no test cases and so I went through and did two things at once:

  • Wrote test cases against an imaginary modular-API.
  • Broke the code into many small modules.

Over time 99% of the code has been turned into objects and modules and now I have a good place to add more tests.

Testing a large monolithic application is quite hard.

Although if you can install an instance upon a test environment (perhaps along with a test database with contents, etc) you may be able to use the WWW::Mechanize family of modules to fire requests against it and parse the results back out.

Steve
--

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2024-04-25 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found