Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: testing externally controlled data sources

by Ryszard (Priest)
on Feb 03, 2003 at 09:36 UTC ( [id://232179]=note: print w/replies, xml ) Need Help??


in reply to testing externally controlled data sources

To follow on from what pg has mentioned, what you're after is control. You need to build your own data and seed it with results you will expect to see foreach type of test case, postive, negative, and any boundary conditions that may apply. As you know what the data is, you can safely expect to see your it in your output.

After the unit tests are successful (and documented, being careful to retain the data, and making sure all the tests are reproducible) it generally a good idea to grab some production data and perform another series of tests...

From here you can sumbit you system to UAT (User Acceptance Testing) and final QA and signoff by the owners of the process/procedure or whatever.

Depending on youre environment, Unit Testing that is well documented may be enuff, however keep in mind, your goal, is to prove your programming works as advertising. The required level of proof will differ from site to site, however IMO, one should at the very minimum have fully documented test cases at the Unit Test level.

Also having someone test your system who has not been involved in the design/coding is generally a good idea as they bring a fresh set of eyes and ideas that you may not have considered.

  • Comment on Re: testing externally controlled data sources

Replies are listed 'Best First'.
Re: Re: testing externally controlled data sources
by revdiablo (Prior) on Feb 04, 2003 at 00:43 UTC

    Thanks to Ryszard, pg, and toma for your replies.

    Considering these modules are being created solely for my own consumption, I think the UAT, QA, and final signoff might not necessarily be appropriate :) ... but that's fine advice for any commercial endevours, and I thank you for it.

    These tests were really intended as a sort of soft introduction to testing based on some simple code I'd just recently written. With that in mind, I think a simple test .db and basic unit tests will probably suffice for now.

Log In?
Username:
Password:

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

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

    No recent polls found