Testing Software From Developers' Point-of-View
Ufuk Uzun, Batuhan Bayrakçı, Sedatcan Sonat
December 2016
verify the functionality of a specific section of code
white-box style testing
usually at the method level
in OOP, usually at the class level
automated tests as documentation
"A failure in a high-level test is not just a bug in functional code, it's also a missing unit test"
~Martin Fowler
Test-Driven Development lifecycle
is a measure used to describe the degree to which the source code of a program is executed when a particular test suite runs.
Metrics:
"I get paid for code that works, not for tests, so my philosophy is to test as little as possible to reach a given level of confidence..."
~Kent Beck
In XP, CI was intended to be used in combination with automated unit tests written through the practices of test-driven development.
Contains various testing examples for Java projects: