Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is it possible to do TDD without unit tests? I ask because a place where I interviewed had no concepts of mocking, injecting, and would just test the whole chain of classes. But dev leads would insist on TDD. Hmm?


Yep:

https://en.wikipedia.org/wiki/Acceptance_test-driven_develop...

I much prefer this approach. The looser coupling gives you more freedom to undo your initial architectural mistakes.

You also can't effectively do unit test driven development on big balls of mud.

I dislike Gherkin-based languages though. The syntax design was not particularly well thought through.


No I think they are conflating TDD with 'having automated tests'


Yes. You could do BDD with something like cucumber or codeception. It's also possible that the tests use a test database without mocks. You'll generally see tests without mocks or injections in older codebases where the codebase was not built with injection in mind and adding mocks would man rewriting the entire application.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: