News for hackers. Stuff that matters.
Re:Coverage is not strongly correlated with test suite effec... by 4140tm on Tuesday September 28, 2021 @02:31AM (#28679893)
You don't need precise specs to practice TDD. If you have idea of the code you need to write, you can write the test for it beforehand - no matter how often someone might change their mind about the app.

Doing so would actually make your life a lot easier when it's time to alter functionality, because now you have well tested and testable code. Code that is written to be tested is usually a lot easier to reason about, to change and extend.

If you do it in concise manner and test behavior rather than implementation, what you previously thought of overhead will actually speed you up.

Re:Coverage is not strongly correlated with test suite effec... by berkes on Tuesday September 28, 2021 @03:12AM (#28680126)
Tests are also meant to be continously refactored, though.