What if there's a problem in your test data and you end up loading ten times the number of records that you intended to run? How will you catch that?
Because one of the tests is "count it on the database". If I ended up loading 10 times as much data, count on the database would be inflated and therefore not equal.

I should be clear here, I'm not testing a module...I'm testing that a database conversion went as expected. In college, I had a warehouse job. Our mantra there was "If it came in by count, count it. If it came in by weight, weigh it". That's exactly what I'm doing here. I do counts before and after as a first level check. One of the tables is non-normalized in that it has the same 3 columns repeated over and over to reperesent different things (think a family; the columns are dad's hair color, occupation, and age, mom's hair color, occupation, and age, etc). There are a different number of sets depending on the database. For each of these sets of columns, I want to check that it got into the normalized structure correctly. Once the counts are verified, I "weigh" it. That is to say that I make sure that the quality of the data before and is the same.

thor

Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come


In reply to Re^2: No plan "weakens" my Test scripts? by thor
in thread No plan "weakens" my Test scripts? by thor

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.