Unit testing is a software development process in which the smallest testable parts of an application, called units, are individually and independently scrutinized for proper operation.

Photo by Startup Stock Photos from Pexels
Nutter framework from Microsoft makes it easy to create unit test cases in Databricks notebook.
It's very simple to use and works directly on notebooks.
Step1: Install nutter library via pypi