-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mock Redis connection for testing environment #5
Comments
I think that is bad idea to run functional tests with stubbed environment. Just create unit tests if you need and run them separately. |
@kosmatov would you recommend to have Redis up while running specs instead? I'm not sure about that since Sidekiq itself has helpers to mock Redis calls in unit tests https://github.com/mperham/sidekiq/wiki/Testing#wiki-testing-worker-queueing-fake |
Oh, ok, I understand what you want. I'll see how |
Ok thanks. Currently I have to add this to the spec files of my workers that use
Workers using just |
👍 I'm all for this feature! |
👍 |
Hi guys, I just noticed that Redis isn't being stubbed when running the specs from my app.
Then I realized that folks from the
sidekiq-unique-jobs
gem ran into the same isssue:mhenrixon/sidekiq-unique-jobs#18
Shall we do something similar here? just give me the call.
Thanks!
The text was updated successfully, but these errors were encountered: