To be able to write tests for data factory, the pipeline and activity definitions need to be available. The recommended way to do this is to sync the Data Factory instance to a git repository, so that a tests
folder can be created in the same repository and write tests for your data factory. The git integration process can be found here:
- Fabric - Git integration process
- Azure Data Factory - Git integration process
- Azure Synapse Analytics - Git integration process
To download a single JSON file for testing purposes, follow these steps:
- Open the Data Factory or Synapse Analytics instance, and open the pipeline to be tested.
- Click on the action ellipses
- Click "Download support files"
- Extract the zip file containing the pipeline definition in a folder of choice.
Remember the location of this folder, as it will be needed to initialize the framework.
Once the repository is set up, the framework can be installed and initialized as described in the installing and initializing the framework page.