This looks promising: https://www.oipapio.com/question-534593
Request for lesson(s) on testing scheduled tasks + jobs/queues.
This requests subforum is for requesting videos on specific topics, right?
I'm working on an application that will rely heavily on jobs/queues and scheduled tasks. Them working properly, flawlessly even, will be vital and as such I think I need to apply TDD here.
There is some information available on testing jobs/queues but I can't even imagine how one begins to test scheduled tasks.
You'd have to somehow have the scheduler running in the context of the tests (I don't see how such a thing could be mocked) and you'd need to fake advances of system time and have the actual scheduler react to them.
I can't even begin to imagine how this would be accomplished.
Perhaps this would make for a good advanced lesson.
Please or to participate in this conversation.