© Arnon Axelrod 2018
Arnon AxelrodComplete Guide to Test Automationhttps://doi.org/10.1007/978-1-4842-3832-5_17

17. Unit Tests and TDD

Arnon Axelrod1 
Matan, Israel

While both acceptance-test-driven development (ATDD) and test-driven development (TDD) are methodologies that advocate writing the tests before the code, ATDD (or BDD) is usually considered to lend itself better to bigger test scopes and to scenarios that describe how the users use the system, while TDD is considered to lend itself more specifically to unit tests, which uses the smallest test scope (of a single class or even a method), and therefore tests more technical details. For that reason, unit tests and TDD are considered practices that are done directly by the same developer ...

Get Complete Guide to Test Automation: Techniques, Practices, and Patterns for Building and Maintaining Effective Software Projects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.