News for hackers. Stuff that matters.
Re:Is TDD Dead? (2014) by simiones on Wednesday August 26, 2020 @11:37AM (#24283419)
> - When people talk about "unit tests", a unit doesn't refer to the common pattern of "a single class". A unit is a piece of the software with a clear boundary. It might be a whole microservice, or a chunk of a monolith that is internally consistent.

I don't understand how this matches to the idea of "don't write one line of code unless it's necessary to make a failing test to pass".

Re:Is TDD Dead? (2014) by Ma8ee on Wednesday August 26, 2020 @02:49PM (#24285830)
What is it that you think is contradictory?
Re:Is TDD Dead? (2014) by simiones on Thursday August 27, 2020 @09:26AM (#24293446)
All of the design advantages I've ever heard advertised for TDD come from writing a bit of test, a bit of code, a bit more test, a bit more code.

If instead you are writing a few tests and then an entire module, you're doing test-first development, but it's definitely not test-driven development as I've ever seen it presented by proponents.

Re:Is TDD Dead? (2014) by Ma8ee on Monday August 31, 2020 @04:44PM (#24335748)
You need to write a module. You write tests that tests the functionality of the module. But to pass those tests you need a couple of classes. You write tests for the classes (or at least the one you intend to work on next). The class needs some methods, you write tests for those. You write code for the methods until all methods tests pass. Hopefully the tests for the class pass, otherwise you might need to update methods and tests for those. Unt so weiter.