Skip to content

Commit

Permalink
Move Naming Conventions section in CONTRIBUTING.rst (apache#10103)
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-laj authored Aug 2, 2020
1 parent 3fff9e9 commit 33646db
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -665,27 +665,8 @@ If this function is designed to be called by "end-users" (i.e. DAG authors) then
...
# You SHOULD not commit the session here. The wrapper will take care of commit()/rollback() if exception
Test Infrastructure
===================

We support the following types of tests:

* **Unit tests** are Python tests launched with ``pytest``.
Unit tests are available both in the `Breeze environment <BREEZE.rst>`_
and `local virtualenv <LOCAL_VIRTUALENV.rst>`_.

* **Integration tests** are available in the Breeze development environment
that is also used for Airflow's CI tests. Integration test are special tests that require
additional services running, such as Postgres, Mysql, Kerberos, etc.

* **System tests** are automatic tests that use external systems like
Google Cloud Platform. These tests are intended for an end-to-end DAG execution.

For details on running different types of Airflow tests, see `TESTING.rst <TESTING.rst>`_.


Naming Conventions for provider packages
========================================
----------------------------------------

In Airflow 2.0 we standardized and enforced naming for provider packages, modules and classes.
those rules (introduced as AIP-21) were not only introduced but enforced using automated checks
Expand Down Expand Up @@ -746,6 +727,24 @@ The rules are as follows:
* System tests (not yet fully automated but allowing to run e2e testing of particular provider) are
named with _system.py suffix.

Test Infrastructure
===================

We support the following types of tests:

* **Unit tests** are Python tests launched with ``pytest``.
Unit tests are available both in the `Breeze environment <BREEZE.rst>`_
and `local virtualenv <LOCAL_VIRTUALENV.rst>`_.

* **Integration tests** are available in the Breeze development environment
that is also used for Airflow's CI tests. Integration test are special tests that require
additional services running, such as Postgres, Mysql, Kerberos, etc.

* **System tests** are automatic tests that use external systems like
Google Cloud Platform. These tests are intended for an end-to-end DAG execution.

For details on running different types of Airflow tests, see `TESTING.rst <TESTING.rst>`_.

Metadata Database Updates
=========================

Expand Down

0 comments on commit 33646db

Please sign in to comment.