mercredi 18 février 2015

When should I remove mock?

Sometime back I used mock in TDD (Test Driven Development) when implementation of dependent interfaces was not available. So I mocked those dependencies and tested my work. Now implementation of dependencies is available. So should I remove the mock or should I convert them to spy or any other way. I think integration can only be test after removing those or I may have to duplicate them. I am little confused, any suggestion on this?


Aucun commentaire:

Enregistrer un commentaire