Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/policy/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,15 @@ If testing for the same Airflow and Python version, next runs of the integration

hatch run tests.py3.11-2.10-1.9:test-integration

Any extra arguments passed after ``test-integration`` are forwarded to ``pytest``. This is convenient for iterating on a single test:

.. code-block:: bash

hatch run tests.py3.11-2.10-1.9:test-integration -k test_name
hatch run tests.py3.11-2.10-1.9:test-integration tests/operators/test_watcher.py::test_name

The same applies to other pytest flags (``-x``, ``-vv``, ``--lf``, ``--pdb``). Note: ``scripts/test/integration.sh`` passes its own ``-k`` exclusion list for k8s and python-models DAGs, so a ``-k`` passed here overrides that exclusion. Setting ``PYTEST_ADDOPTS="-k ..."`` does not work — pytest only honors the last ``-k`` it sees, and the script's ``-k`` wins.

Writing Docs
^^^^^^^^^^^^

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ freeze = "pip freeze"
test = 'sh scripts/test/unit.sh'
test-cov = 'sh scripts/test/unit-cov.sh'
test-integration-setup = 'sh scripts/test/integration-setup.sh {matrix:dbt}'
test-integration = 'sh scripts/test/integration.sh'
test-integration = 'sh scripts/test/integration.sh {args}'
test-kubernetes = "sh scripts/test/integration-kubernetes.sh"
test-kubernetes-setup = "sh scripts/test/kubernetes-setup.sh {matrix:dbt}"
test-integration-dbtf-setup = 'sh scripts/test/integration-dbtf-setup.sh'
Expand Down
3 changes: 2 additions & 1 deletion scripts/test/integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ pytest -vv \
--ignore=dev/dags/cross_project_dbt_ls_dag.py \
--ignore=tests/test_telemetry.py \
-k 'not (simple_dag_async or example_cosmos_python_models or example_virtualenv or jaffle_shop_kubernetes or jaffle_shop_watcher_kubernetes)' \
$SPLIT_ARGS
$SPLIT_ARGS \
"$@"