houqp commented on pull request #9273:
URL: https://github.com/apache/airflow/pull/9273#issuecomment-643811896


   > I think, writing tests improve code coverage?
   
   As @OmairK already mentioned, duplicated tests that test the same code path 
won't increase code coverage. In fact it will make future refactoring harder 
because you will have to change more than one tests whenever you introduce a 
behavior change.
   
   If a code path can be covered by end to end api test, that should be 
preferred. It's better to test on expected behavior of the system instead of 
implementation details.


----------------------------------------------------------------
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]


Reply via email to