For my first significant (non Acme::) distribution for CPAN, I've been able to create modules that will interact with a propriety database and in trying to create the tests for all the interactions, have hit a stumbling block - to supply canned data, or not to.
Normally I would ask WWDBID (What Would DBI Do?), however RDBMS-like databases allow permitted users connecting to the server to not just modify rows, but also structure as well. This is a freedom unavailable to me given the way the software works. In conclusion I see a few options:
- Can it - supply a small canned data set so non-smoke testers and end users with the propriety software can test it. This means putting a 100kb+ binary blob into the distribution, and also into my repository.
- Linked can - don't supply the canned data, but simply host it, so that interested parties can download it and use it as they wish. In the future when I might care less about developing this, this link could break.
- Hijack - use an existing database hosted on the client's test server and perform both read and write queries. This has the potential to go wrong if bad code deletes or overwrites end user data.
- Mouse Potato - Don't bother about complete test coverage and go back to browsing tech blogs.
Wise monks, what do you suggest?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.