You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 6, 2024. It is now read-only.
As the project changes, a lot of mocks can remain that are not even called in the scope of the test suite.
I wonder if in this project, we could somehow automatically detect whether a given mock was called at least once; if not, throw an error - this would help people keep their test suites lean and clean.
The text was updated successfully, but these errors were encountered:
@anilanar you have a point, but linter can only do so much... Imagine a convoluted mocking machinery where mocks get set up (so no "unused variables") but are never actually called. People maintain these set-ups without realising it's pointless work!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As the project changes, a lot of mocks can remain that are not even called in the scope of the test suite.
I wonder if in this project, we could somehow automatically detect whether a given mock was called at least once; if not, throw an error - this would help people keep their test suites lean and clean.
The text was updated successfully, but these errors were encountered: