https://delta.io logo
#random
Title
l

Lucas Zago

02/23/2023, 11:43 AM
Hi all, someone know a good tutorial about how to integrate unit_tests on databricks ?
m

Matthew Powers

02/23/2023, 12:34 PM
You can write unit tests that are run locally and then package them up in a wheel file with functions that are invoked on the Databricks platform. That’s how I’ve done it traditionally. I created the chispa test helper library that you might find useful when writing your tests: https://github.com/MrPowers/chispa
l

Lucas Zago

02/28/2023, 4:46 PM
@Matthew Powers thanks for the content, have some video/tutorial explaining about how to package up into databricks env ?
m

Matthew Powers

02/28/2023, 5:13 PM
I don’t have a guide handy, but for a poetry project, you can just run
poetry build
, attach the generated wheel file to a cluster, and then invoke functions as you normally would
✔️ 1
4 Views