qur / withmock

Automatic Go package mock generation tool
Other
71 stars 9 forks source link

What is the purpose of the withmock command now that theres mocktest? #22

Closed imosquera closed 10 years ago

imosquera commented 10 years ago

Question:

Is there any additional purpose to having the withmock command since mocktest can test a single package?

qur commented 10 years ago

withmock still exists for 2 reasons:

1) I haven't switched round all my stuff to mocktest yet 2) It gives you the ability to run whatever command you like in the mocked environment, which can be useful if mocktest doesn't do what you want/need (it can also be useful for debugging issues when it turns out that mocktest doesn't let me specify gocheck flags for instance).

The 2nd is the more significant reason, and is why withmock will probably be around for a while.