Unit Test Boundaries
Posted by: youve been HAACKED,
on 22 Jul 2008 |
View original | Bookmarked: 0 time(s)
One principle to follow when writing a unit test is that a unit test should ideally not cross boundaries. Michael Feathers takes a harder stance in saying A test is not a unit test if: It talks to the database It communicates across the network It touches the file system It cant 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 Tests that do these things arent...