Reklamlar

TDD ile Uygulama Geliştirme

Etiketler: tdd
TDD ile Uygulama Geliştirme
tdd-ile-uygulama-gelistirme
TDD Derlemeleri

A Set of Unit Testing Rules by Michael Feathers [http://www.artima.com/weblogs/viewpost.jsp?thread=126923]

In Extreme Programming, the typical way of handling it is to periodically go back and optimize your tests as they get too slow. In many cases this works well, but the amount of optimization that you have to do can be rather large if you haven’t been conscious of how long your tests run during development.The tests hit a server and went through session beans, entity beans, down to the bowels of the database and then up again. Their refrain? “We don’t like writing unit tests any more; they take too long to run.

A test is not a unit test if:

  • It talks to the database
  • It communicates across the network
  • It touches the file system
  • It can't run at the same time as any of your other unit tests
  • You have to do special things to your environment (such as editing config files) to run it.

When you pull the database, sockets, or file system access into your unit tests, they aren’t really about those methods any more; they are about the integration of your code with that other software.

TDD Videoları

Getting Started with Tdd in Java using Eclipse from Brett L. Schuchert on Vimeo.


Tartışma




ya da
CAPTCHA Images