-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add basic and advanced documentation and refactor main readme
- Loading branch information
Showing
22 changed files
with
100 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# Tips | ||
# Debugging | ||
|
||
1. After parsing a data factory resource file, you can use the debugger to easily discover which classes are actually | ||
initialized so that you can cast them to the correct type. | ||
As the framework is dynamically parsing and interpreting data factory resource files, it can be difficult to figure out with which objects you are working with. It is recommended to use the debugger during development of your tests to get a better idea of what activities are being returned and to see the structure of the activity and its properties. |
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Framework internals | ||
|
||
This page will be used to describe the internals of the testing framework. It will be used to document the architecture, design decisions, and implementation details of the framework. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Repository setup | ||
|
||
## Git integration | ||
|
||
To be able to write tests for data factory, you need to have the pipeline and activity definitions available. The recommended way to do this is to sync the Data Factory instance to a git repository, so that you can create a `tests` folder in the same repository and write tests for your data factory. The git integration process can be found here: | ||
|
||
1. [Fabric - Git integration process](https://learn.microsoft.com/en-us/fabric/cicd/git-integration/git-integration-process) | ||
2. [Azure Data Factory - Git integration process](https://learn.microsoft.com/azure/data-factory/source-control) | ||
|
||
### Alternative for Azure Data Factory | ||
|
||
If you want to download a single JSON file for testing purposes, you can do so by following these steps: | ||
|
||
1. Open your Data Factory instance, and open the pipeline you want to test. | ||
2. Click on the action ellipses | ||
3. Click "Download support files" | ||
4. Extract the zip file containing the pipeline definition in a folder of your choice. | ||
|
||
> Remember the location of this folder, as you will need it to initialize the framework. | ||
Once your repository is set up, you can install and initialize the framework as described in the [installing and initializing the framework](installing_and_initializing_framework.md) page. | ||
|
||
![image](../images/download_support_files.png) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Getting started | ||
|
||
This getting started focuses on novice users who are not familiar with Python or package management. It will guide you through the process of setting up a Python project, installing the framework and downloading the pipeline files so that you can start writing tests. | ||
|
||
## Download your Data Factory pipeline files | ||
|
||
The framework is designed to work with the JSON files that define your data factory pipelines and activities. You can download these files from your data factory environment. | ||
|
||
## Installing the framework in your project | ||
|
||
If you are using Visual Studio Code: | ||
|
||
1. Create a new folder for your project. | ||
2. Install the following framework from the terminal: | ||
|
||
```bash | ||
pip install data-factory-testing-framework | ||
``` | ||
|
||
3. Install pytest as testing library. All examples in this documentation are using pytest. | ||
|
||
```bash | ||
pip install pytest | ||
``` | ||
|
||
4. Download the pipeline files from your data factory environment and place them in the project folder as described in the [repository setup](basic/repository_setup.md) page. | ||
|
||
Additional resources: | ||
|
||
* [Get Started Tutorial for Python in Visual Studio Code](https://code.visualstudio.com/docs/python/python-tutorial) | ||
* [Integrated Terminal in Visual Studio Code](https://code.visualstudio.com/docs/terminal/basics) | ||
* [pytest: helps you write better programs — pytest documentation](https://docs.pytest.org/en/7.4.x/) | ||
|
||
Once setup, you can read the following pages to learn how to write tests for your data factory: | ||
|
||
1. [Initializing the framework](basic/installing_and_initializing_framework.md) | ||
2. [Activity testing](basic/activity_testing.md) | ||
3. [Pipeline testing](basic/pipeline_testing.md) |
File renamed without changes