mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-28 02:17:53 +00:00
doc(ingest): update golden file command (#4992)
This commit is contained in:
parent
be91e2341f
commit
2b77468b7b
@ -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
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user