gnecula / bond

Spy-based testing library.
http://necula01.github.io/bond/
Other
7 stars 3 forks source link

bring back `ignore` in some form #18

Closed xkrogen closed 8 years ago

xkrogen commented 8 years ago

Writing the heat_watcher test has made me realize that the ignore option is really nice for situations where you want to mock but not spy (in the heat_watcher example, I really don't want to be observing all of the calls to get_current_time) but this isn't possible at the moment.

gnecula commented 8 years ago

I very much agree.

On Fri, Oct 23, 2015 at 2:31 PM, Erik notifications@github.com wrote:

Writing the heat_watcher test has made me realize that the ignore option is really nice for situations where you want to mock but not spy (in the heat_watcher example, I really don't want to be observing all of the calls to get_current_time) but this isn't possible at the moment.

— Reply to this email directly or view it on GitHub https://github.com/necula01/bond/issues/18.

xkrogen commented 8 years ago

This was added in commits f316761 (Python) and fe9dc80 (Java, Ruby) via the mock_only option on spy points.