Skip to content

Commit

Permalink
doc(ingest): update golden file command (#4992)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored May 25, 2022
1 parent be91e23 commit 2b77468
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions metadata-ingestion/developing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 2b77468

Please sign in to comment.