Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Testing by Contract

by mvc (Scribe)
on Jun 30, 2003 at 21:15 UTC ( [id://270332]=note: print w/replies, xml ) Need Help??

in reply to Testing by Contract

  1. ...Class::Contract is specifically tied to the concept of classes...

    This is also mentioned in the Class::Contract POD under "Offering better facilities for retrofitting contracts".

    Yep. This a cross-cutting concern that should not be tangled with a class definition framework. Such concerns are best untangled using the Aspect module. Of course it may be difficult to provide all the DBC features Class::Contract provides, like old() and inheritance support.

  2. See "A simple and practical approach to unit testing: The JML and JUnit way" for some work on going from assertions to tests, and a bibliography.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2024-05-28 07:46 GMT
Find Nodes?
    Voting Booth?

    No recent polls found