DEV Community

Discussion on: How to test software effectively

Collapse
 
auroratide profile image
Timothy Foster

Indeed, when tests hinder refactoring more than help, it's probably time to rethink the testing strategy!

Although mocking/stubbing doesn't inherently couple tests to implementation, a lot of people use them in a way that does that. I actually very rarely use stubs nowadays and generally build my own test fakes. Been wanting to write about that for months now but it's a rather complex and probably controversial topic!