-
Notifications
You must be signed in to change notification settings - Fork 38
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
seeQueue() helper #108
Comments
What about configuring the sync queue handler? By default you can configure it in your test env so that tasks are handled synchronously, this makes e2e testing easier. If we'd want to support it we could do something with handling the events emitted by the queue and making them available for inspection. |
Could you give an example about configuring the sync queue handler? Do you mean using the Yii2 Synchronous queue driver just in the testing environment? |
Seems like something you can figure out for yourself..
Yes |
I'm not asking for a technical solution. I am just not sure what a sync queue handler is... unless it means synchronous? Having an acceptance test run to make sure events are emitted would satisfy the testing needs. |
Yes, https://www.yiiframework.com/extension/yiisoft/yii2-queue/doc/guide/2.1/en/driver-sync
For this you could use events as I mentioned in the initial response. I imagine something like using Yii's class level events to listen for job submissions and storing a reference to the job. |
It would be nice to test if there is a job that was enqueued to check that event driven systems are working properly.
The text was updated successfully, but these errors were encountered: