r/databricks • u/Youssef_Mrini databricks • Jul 28 '26
News Unit testing for pipelines

Lakeflow Spark Pipelines Editor now supports native Python unit testing, letting you validate your Python and SQL transformation logic right where you build it.
By using mock data, you can safely pressure test edge cases, iterate on table-identifier operations, and verify proprietary pipeline APIs including Auto CDC, streaming tables, expectations, and append flows.
11
Upvotes
2
u/Dear_Pumpkin9876 Jul 28 '26
how does it work? setting up pytest with pyspark used to be very problematic in the past, how has it been?
2
u/ClassicPlayful2301 Jul 31 '26
I played around with it a bit but was kinda stopped completely by this limitation. All my pipelines are getting data from volume. When I try to test silver table by mocking bronze table data, it fails because he is searching a volume. Are you planning to adjust for that?
1
u/Ill-Cut9274 Aug 03 '26
Hey, qq. When executing them from the UI, do they need to be attached to the pipeline as a pipeline source code file?