potiuk commented on issue #4932: [AIRFLOW-3611] Simplified development workflow 
[Depends on multi-staging]
URL: https://github.com/apache/airflow/pull/4932#issuecomment-476195528
 
 
   @ashb @fokko -> as a follow up I also implemented auto-complete for 
"run-test" method inside the container. 
   
   This was by far the single biggest problem I had when running the tests. 
Having to remember module names and the : in the right place was a major pain. 
Now it's super convenient to start typing the module name and use 
auto-complete. It goes down to individual tests.
   
   I also renamed and shortened the run_unit_test.sh method to simple 
'run-test' that you can run anywhere (it is in the path). I also added 
--skip-db-init flag - most of the tests do not require to re-run the database 
initialisation and if you want to re-run single test, it takes awfully lot of 
time. So you can now pass --skip-db-init flag to skip resetdb/initdb. You can 
even autocomplete it ;). 
   
   I think with those changes, life of developers trying to use 
breeze/replicate CI tests will be much, much easier.
   
   I used nosetests for now but we can do very similar thing with pytest when 
we switch to it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to