Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Testing by Contract

by mvc (Scribe)
on Jun 30, 2003 at 21:15 UTC ( #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? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2023-04-01 20:00 GMT
Find Nodes?
    Voting Booth?

    No recent polls found