cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks regression test suite

_deepak_
New Contributor II

Hi, I am new to Databricks and setting up the non-prod environment. I am wanted to know, IS there any way by which I can run a regression suite so that existing setup should not break in case of any feature addition and also how can I make available prod datas in non-prod? Shallow copy?

3 REPLIES 3

Anonymous
Not applicable

@deepak prasadโ€‹ :

Yes, you can run regression tests to ensure that your changes do not break existing functionality. Databricks supports a number of testing frameworks like PyTest, which can be used to automate regression testing. You can write test cases that cover different scenarios and use cases of your application and run them automatically after each code change.

To make production data available in non-production, you can use a number of techniques such as database replication, backup and restore, or data cloning. One approach could be to take regular backups of your production databases and restore them in non-production environments. You can also use data masking and obfuscation techniques to protect sensitive data in non-production environments. Another approach is to use a data virtualization platform that can create a virtualized copy of the production data on demand, without actually copying the data. This can help reduce the storage requirements in non-production environments.

_deepak_
New Contributor II

Hi @Suteja Kanuriโ€‹ ,

I can create the testcases using any framework may be pytest or great_expectation, But how to run regression after any code changes. Is there any blog or documentation for the non-prod setup or regression running? Can you please share some references for this?

Anonymous
Not applicable

@deepak prasadโ€‹ :

Here you go

  1. https://docs.greatexpectations.io/docs/
  2. You can search here - https://www.databricks.com/blog

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group