Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Philosophical question about testing

by Narveson (Chaplain)
on Oct 28, 2010 at 06:07 UTC ( [id://867920]=note: print w/replies, xml ) Need Help??


in reply to Philosophical question about testing

Yes, your question makes good sense. It sounds to me as though your test is still operating at too high a level. With experience, you will write smaller tests, each of which confirms some concrete outcome.

You say your test suite uses basically the same code as in your module to see if the new permissions are acceptable. So separate the checking and the fixing.

Create some files and set their permissions explicitly and test whether your permission checking code, at run time, evaluates the acceptability of each set of permissions in the same way that you, at test writing time, believe it should. Nothing circular about that.

  • Comment on Re: Philosophical question about testing

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-24 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found