News for hackers. Stuff that matters.
Re:Write tests. Not too many. Mostly integration (2017) by evv on Thursday January 31, 2019 @03:43PM (#19048629)
The TDD style bottom-up approach can be handy too. On a recent project I write most of the tests first, to consider the API before implementation. These should come in handy when future developers join the codebase and need to understand the intended behavior of these components.
Re:Write tests. Not too many. Mostly integration (2017) by sorokod on Thursday January 31, 2019 @04:20PM (#19048975)
Would a future developer care if you wrote your tests before or after the API was implemented?
Re:Write tests. Not too many. Mostly integration (2017) by xiphias2 on Thursday January 31, 2019 @05:14PM (#19049512)
Actually yes, it's really hard to write a test without mocking for an existing (non-pure) API.