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
hi,
it would be really appreciable to have an option to disable all mocks (command-based and/or function-based) when running tests : like "--no-mocks"
This would allow us to run our unit tests in real integration with external dependencies (methods, external commands etc..) to have an easy view on two things:
are our mocks still valid / relevant, compare the real things they are mocking ?
does our code continue to well integrate with its real dependencies ?
and this without writing any additional tests.
This would be a "run with real dependencies / integration tests" mode.
I'm currently looking for a way to simulate this by designing a script to remove mocks from my specfiles before this type of run and it's not comfortable at all, a real option would be pleasant !
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hi,
it would be really appreciable to have an option to disable all mocks (command-based and/or function-based) when running tests : like "--no-mocks"
This would allow us to run our unit tests in real integration with external dependencies (methods, external commands etc..) to have an easy view on two things:
and this without writing any additional tests.
This would be a "run with real dependencies / integration tests" mode.
I'm currently looking for a way to simulate this by designing a script to remove mocks from my specfiles before this type of run and it's not comfortable at all, a real option would be pleasant !
Thanks for your reply on this.
Beta Was this translation helpful? Give feedback.
All reactions