klajo / mockgyver

A mocking library for Erlang
BSD 3-Clause "New" or "Revised" License
38 stars 13 forks source link

Warn about unused mocks #25

Open klajo opened 3 years ago

klajo commented 3 years ago

Warn (or fail) when unused mocks are detected. This shall be done in a way that causes no false warnings. It is for example not enough to plug in a check at the end of a fixture (multi-testcase fixture), since there can be multiple fixtures in a test module and those could use a common setup/0 function (which can be convenient to simplify the test code).

I have some experiments in progress.