Attila Bertók

45%
Flag icon
Characterization tests record the actual behavior of a piece of code. If we find something unexpected when we write them, it pays to get some clarification. It could be a bug. That doesn’t mean that we don’t include the test in our test suite; instead, we should mark it as suspicious and find out what the effect would be of fixing it.
Working Effectively with Legacy Code
Rate this book
Clear rating
Open Preview