Hey prefect, I need to write unit tests for my flows and was wondering if y'all had any guidance or examples of some patterns used internally or by existing customers?
Hey @Kevin Kho, no I have not seen that one yet. Have you ran across any more detailed/more real world examples. I am hitting databases, creating spark jobs, accessing storage, etc.
k
Kevin Kho
06/07/2021, 11:03 PM
You posted the same question a while ago right? I feel like I responded, but maybe I forgot. Did I show you Mock connections like this ?
Kevin Kho
06/07/2021, 11:05 PM
This is the unit test for the SnowFlake task. I guess you should just check the unit tests of the task library for inspiration
f
Felipe Saldana
06/07/2021, 11:06 PM
No, this is the first time I have asked about testing in any sort of depth
k
Kevin Kho
06/07/2021, 11:06 PM
Oh ok we had the same question and I wanted to make sure I wasn’t repeating the same answer cuz that would be useless lol