Annotating Your Code with Simple Tests

Posted by posted by Francis @ 9/27/2006 08:59:00 AM

Annotating Your Code with Simple Tests -- Now, that is a great idea. The example that is given here is in C#. But this could be really easy to do in Java/JUnit with annotations.

Of course, this doesn't substitute for more complex test cases but it is a lot like automatically generated documentation. If you keep it close to the code, you have a better chance that it will be kept updates.

Labels:

0 Comments:

Post a Comment

<< Home

My Photo
Name: Francis Beaudet
Location: Gatineau, Québec, Canada

Links

Subscribe to
Posts [Atom]

My shared items

Powered by Blogger