General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Ton Bong
Continuous Delivery
comments
Comments by "Ton Bong" (@tongobong1) on "Test Driven Development vs Behavior Driven Development" video.
OMG I think your tests are bad too. It would be much better to use the real Transport and to check transport.lastMessageSent() in assert. That way you don't need mocking and verify - both make tests harder to read and understand and also your tests will be less coupled with implementation details like the calls to transport.
1
You don't use TDD to develop UI because you need visual inspection and the best tool for that are your eyes.
1
@ContinuousDelivery OMG your tests are bad too. It would be much better to use the real Transport and to check transport.lastMessageSent() in assert. That way you don't need mocking and verify - both make tests harder to read and understand and also your tests will be less coupled with implementation details like the calls to transport.
1
I also think his tests are terrible - too coupled with how system works and hard to read because of mocks.
1