|
|
|
|
|
by hitchstory
495 days ago
|
|
I usually start with a basic e2e that tests the most minimal happy path possible. It makes no assumptions about architecture or anything else. You don't need something to work with to write it. You can, by definition, write an e2e test against an app that doesnt exist. This test isnt special as far as TDD is concerned - red-green-refactor works the same way. Im sensing a pattern in the answers to my question though. I keep getting "well, if you assume TDD is only done with low level unit tests..." |
|
Completely wrong.
Even with your example, there's an initial exploratory stage where you're still figuring out the interface that the tests would use. I, personally, am not capable of using something that doesn't exist. I have to make that initial version first before I can use it in a test.
Quick edit aside: This is also why I rarely work top-down or bottom-up, I work mostly throughline - following the data flow and jumping up and down the abstraction stack as needed.