Databricks adds integrated Python unit testing tools to workspace
Python Unit Testing in the Workspace
Databricks has released integrated Python unit testing tools, bringing first-class testing support directly into the workspace environment. This feature enables developers to work with pytest-based tests without leaving the Databricks IDE.
Key Features
- Tests Sidebar: Browse and organize all discovered tests in a dedicated sidebar panel
- Inline Execution Glyphs: Run individual tests directly from the code editor with visual indicators
- Results Panel Tab: View detailed test execution results and debugging information in the bottom panel
What Developers Can Do
You can now:
- Discover pytest-based tests across your workspace notebooks and files
- Execute tests with a single click from the UI
- Debug failing tests with integrated tools
- Review test results in a dedicated results panel
This feature eliminates the need to switch between the Databricks workspace and external testing tools, improving the development experience for Python-based data engineering and ML workflows.
For detailed instructions and usage examples, see the Python unit testing in the workspace documentation.