3 ms·
Clicking around in your browser is more akin to an integration test though. TDD is about unit tests, not integration tests.
by sbov 9y ago
Clicking around in your browser is more akin to an integration test though. TDD is about unit tests, not integration tests.
- briandear 9y agoI 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 https://robots.thoughtbot.com/testing-from-the-outsidein
- ericgunnerson 9y agoATDD 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.