Unit, integration and gray tests

April 15, 2007 | Filed by Marius under: agile

Scott Bellware has a great post about what makes an unit test and what an integration test.

…it isn’t 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.

Seems like a good idea to separate units and integration tests using these criteria and optimize then based on speed and isolation possibilities.

Comments »

The URI to TrackBack this entry is: http://mapopescu.blogsome.com/2007/04/15/unit-integration-and-gray-tests/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>


      


The content of this blog is subject of a Creative Commons License.

Get free blog up and running in minutes with Blogsome
Theme designed by Viewfinder Design