When is a Test not a Unit Test?

See Michael Feathers' definition

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.
posted @ 2011-08-10 23:52  Lux.Y  阅读(352)  评论(0)    收藏  举报