You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airflow.apache.org by Jarek Potiuk <Ja...@polidea.com> on 2019/12/05 10:05:48 UTC

[ANNOUNCEMENT] just merged Pytest test change

Hello - we just merged the Pytest change (AIP-27
<https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-27+Migrate+to+pytest>
).

This is quite a change (for the better!) on how we all run tests for
Airflow. (Hint! It's super-easy now - both in Breeze and your local
virtualenv).

We will soon start using more and more pytest features to improve our test
harness. We might expect some teething problems - so please do not hesitate
to ask for help on #development channel in slack in case you have some!

We are going to cherry-pick it for 1.10.7 as well when we solve all the
teething problems.

Huge thanks to *Tomek Urbaszek* who has put a lot of effort on debugging on
fixing existing tests that did not work with Pytest (I watched it closely
:). There were a lot of side effects to remove and head-scratching -  so
big thanks to him - especially for persistency. It required a lot of
patience and burning a lot of CPU time on Travis to solve some of those
issues.

This might also be a great opportunity to re-read (and propose some
improvements!) in our contributing documentation. Please take a look at
(also brand new!) TESTING.rst
<https://github.com/apache/airflow/blob/master/TESTING.rst> document where
we described how to run tests now including pytest.

The testing doc is part of the changes implemented as part of the Gooogle
Season of Docs (just finished) where  *Elena Fedotova* (in CC:) put a lot
of effort to make our contributor's doc much better (Also big thanks for
that Elena!).

We have now consistent and inter-linked set of docs for contributors:

   -  CONTRIBUTING.rst
   <https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst>,
   -  BREEZE.rst <https://github.com/apache/airflow/blob/master/BREEZE.rst>
   ,
   -  LOCAL_VIRTUALENV.rst
   <https://github.com/apache/airflow/blob/master/LOCAL_VIRTUALENV.rst>,
   -  STATIC_CODE_CHECKS.rst
   <https://github.com/apache/airflow/blob/master/STATIC_CODE_CHECKS.rst>
   -  TESTING.rst
   <https://github.com/apache/airflow/blob/master/TESTING.rst>

Feel free to make some improvements/PRs/comments etc.

J.

-- 

Jarek Potiuk
Polidea <https://www.polidea.com/> | Principal Software Engineer

M: +48 660 796 129 <+48660796129>
[image: Polidea] <https://www.polidea.com/>