Ask HN: Could you recommend a good book about writing automated software tests?
I very much appreciate the value of writing automated tests for the software, but I don't have much experience beyond elementary unit tests of functions with well-defined inputs and outputs. Real-world software has complex object relationships, multiple side effects, and user interactions. Could someone recommend me a good book or online resources about patterns and strategies for writing more complex automated tests that take into account the complexity of real-world software?
(
4 comments
| 4 points
| on HN
)
I think Brendan Gregg's books[0][1] are quite inspiring for an understanding of a system with its inner workings, and provide information about various tools one can use to dissect a system and get some actual output in an automated way.
[0]: https://www.brendangregg.com/systems-performance-2nd-edition...
[1]: https://www.brendangregg.com/bpf-performance-tools-book.html
This was in my opinion the best and quickest source on good testing practice, which often meant change the code being tested:
https://misko.hevery.com/code-reviewers-guide/
Sadly, it looks like he has neglected his site, but the content can still be seen through google cache.
This page still seems to work and contains a much meatier amount of content: http://misko.hevery.com/attachments/Guide-Writing%20Testable...