doc(ingest): update golden file command (#4992)

This commit is contained in:
Aseem Bansal 2022-05-25 10:52:19 +05:30 committed by GitHub
parent be91e2341f
commit 2b77468b7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,3 +141,17 @@ pytest -vv
# Run all tests under tests/unit
../gradlew :metadata-ingestion:testSingle -PtestFile=tests/unit
```
### Updating golden test files
If you made some changes that require generating new "golden" data files for use in testing a specific ingestion source, you can run the following to re-generate them:
```shell
pytest tests/integration/<source>/<source>.py --update-golden-files
```
For example,
```shell
pytest tests/integration/dbt/test_dbt.py --update-golden-files
```