News for hackers. Stuff that matters.
Re:TDD did not live up to expectations by jcbrand on Thursday June 29, 2017 @12:02PM (#14664325)
My experience is that whether one is writing tests first or not, the code that is being written does get tested one way or the other.

In other words, people (for example web-devs) who don't write tests first tend to "test" their code by clicking around in the browser to see whether they get the desired effect.

Writing tests, running them and then iteratively updating/fixing the code is IMO so much more efficient than manually clicking around to test one's code.

Re:TDD did not live up to expectations by wolco on Thursday June 29, 2017 @12:12PM (#14664411)
You will miss items if you don't visually inspect even in a ttd application. Tdd is a net to catch some expected bugs but should not be the only tests.
Re:TDD did not live up to expectations by sbov on Thursday June 29, 2017 @12:10PM (#14664390)
Clicking around in your browser is more akin to an integration test though. TDD is about unit tests, not integration tests.
Re:TDD did not live up to expectations by briandear on Thursday June 29, 2017 @12:19PM (#14664457)
I disagree. I and others (such as Thoughtbot) often start by writing integration tests first. It’s known as outside-in testing.

TDD by started by with low level tests is just backwards. Outside-in helps you clarify the design from the perspective of the user.

https://robots.thoughtbot.com/testing-from-the-outsidein

Re:TDD did not live up to expectations by ericgunnerson on Thursday June 29, 2017 @04:07PM (#14666460)
ATDD or design-driven development starts with integration tests first, and can be a great thing if written by the PO, as you can pretty much skip acceptance testing.

It addresses a different concern than unit testing, however.

Re:TDD did not live up to expectations by dang on Thursday June 29, 2017 @04:58PM (#14666825)
(Your account was rate-limited—sorry, fixed now. It's an anti-abuse restriction on new accounts and we hate it when article authors get dinged by it!)
Re:TDD did not live up to expectations by macca321 on Wednesday July 05, 2017 @03:02AM (#14700409)
This is the only comment to mention ATDD, and none mention BDD. :(
Re:TDD did not live up to expectations by stale2002 on Thursday June 29, 2017 @12:23PM (#14664504)
Exactly this!

It is literally faster to write the test, then to manually go around hitting your endpoint.