4 ms·
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 chai
by dewiz 10y ago
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?
- bbcbasic 10y agoNo I think they are conflating TDD with 'having automated tests'
- twunde 10y agoYes. 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.
- crdoconnor 10y agoYep: https://en.wikipedia.org/wiki/Acceptance_test-driven_development 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.