Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Unit testing OS rich code

by Voronich (Hermit)
on Oct 12, 2011 at 15:54 UTC ( #931046=note: print w/ replies, xml ) Need Help??


in reply to Re: Unit testing OS rich code
in thread Unit testing OS rich code

Eh. I really don't like having filesystem state for tests. I think I'm just avoiding the inevitable here. I've got the same issues coming fast on the horizon for database interactions as well.

Me


Comment on Re^2: Unit testing OS rich code
Re^3: Unit testing OS rich code
by chromatic (Archbishop) on Oct 12, 2011 at 20:20 UTC
    I really don't like having filesystem state for tests.

    If your code manipulates the filesystem, how will you know if it works unless you test that it manipulates the filesystem?


    Improve your skills with Modern Perl: the free book.

      At some point you have to trust that the primitives are doing their job. Otherwise "full code coverage" would always include unit tests that cover perl itself. So keeping an onion-skin layer on top allows me to preserve testability.
      Me

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-08-02 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls