The article discusses what kind of test that's needed in a project, and what the differences are between the different kind of tests.
Here's some hightlights:
Unit tests run fast. If they don't run fast, they aren't unit tests.
Other kinds of tests often masquerade as unit tests. A test is not a unit test if:
- It talks to a database.
- It communicates across a network.
- It touches the file system.
- You have to do special things to your environment (such as editing configuration files) to run it.
Ingen kommentarer:
Send en kommentar