I have a loosely similar problem in the testing that we do. In our case, as our larger hardware systems are being 'built up', we frequently don't yet have all the hardware components when we're developing our testing scripts. So it is always a major pain to construct the 'stubs' for the missing hardware.

So I've been looking around for any 'already-thought-out' strategy to take out some of the drudgery of creating the 'stubs.' Creating them always seems to involve a bunch of standard stuff and then tailoring for the specific behaviors of the specific hardware.

I have looked around on CPAN but somehow missed Test::MockObject. It sounds (at least on the surface) to be just what I've been looking for.

Looks like I'll be spending some time getting to know this potential new 'friend.'

Thanks, tirwhan.

ack Albuquerque, NM

In reply to Re^2: TDD when some components talk to hardware? by ack
in thread TDD when some components talk to hardware? by lwicks

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.