taskinator icon indicating copy to clipboard operation
taskinator copied to clipboard

Better test/spec support

Open virtualstaticvoid opened this issue 3 years ago • 0 comments

One more question. Is there any best practice for testing flows. I stubbed all my jobs perform method and run

Resque.inline = true
process = MyProcess.create_process
process.enqueue!

but I see that there is a 3 seconds delay between the execution of the jobs. So the test takes a very long time.

One more problem I faced is that I can't stub tasks. I would like to be able to stub this task to check that flow calls it and then write a separate test for each of the jobs. As I can see in the source code that taskinator includes my flow into instances of Taskinator::Executor.

Thanks

Originally posted by @bguban in https://github.com/virtualstaticvoid/taskinator/issues/6#issuecomment-822398086

virtualstaticvoid avatar Feb 17 '22 23:02 virtualstaticvoid