General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Ton Bong
Continuous Delivery
comments
Comments by "Ton Bong" (@tongobong1) on "Tackling Tough Parts Of Test Driven Development (TDD) With Michael Feathers u0026 Dave Farley" video.
@danielwilkowski5899 Exactly! Mocking all dependencies to isolate class under test (London style unit tests) is a terrible idea that is killing the European software industry. Americans are writing mostly classical unit tests without mocking object interactions.
1
Mocking frameworks are terrible! Stay away from them. Use integration tests for testing IO, DB...
1
@1879heikkisorsa you can use TDD without mocking anything except calls outside the system - like calls to database or filesystem... You can do it bottom up layer by layer or top down. With top down just temporary return from lower layer until you implement the lower layer and then you refactor temporary solution to use the lower layer and tests should all pass... I hope you understand what I mean.
1
@1879heikkisorsa Yes in this case you can mock the repo by extending it with your test repo. Just don't use mocking frameworks because they are terrible.
1