fancy-sundown-164
11/30/2021, 5:25 PM../gradlew :metadata-ingestion:testQuick) with a modified build.grade file to only run the tests I want takes 3-4 minutes, but probably 99% of this is just loading dependencies. Is there some way to cache this step or something between runs?mammoth-bear-12532
venv set up inside metadata-ingestion then the fastest way I’ve found is to run pytest tests/…/test_file.py from within the venvmammoth-bear-12532
../gradlew installDevTest once to make sure you have the right dependencies installed ahead of time otherwise pytest will complainmammoth-bear-12532
mammoth-bear-12532
mammoth-bear-12532
# Run all tests in a single file
../gradlew :metadata-ingestion:testSingle -PtestFile=tests/unit/test_airflow.py
# Run all tests under tests/unit
../gradlew :metadata-ingestion:testSingle -PtestFile=tests/unit
https://datahubproject.io/docs/metadata-ingestion/developing/