potiuk commented on code in PR #35061: URL: https://github.com/apache/airflow/pull/35061#discussion_r1368297806
########## TESTING.rst: ########## @@ -1938,3 +1938,36 @@ On the screen you will see database queries for the given test. SQL query tracking does not work properly if your test runs subprocesses. Only queries from the main process are tracked. + +Code Coverage +============= + +Airflow's CI process automatically uploads the code coverage report to codecov.io. + +Viewing the Coverage Report Online: +----------------------------------- +For the most recent coverage report of the main branch, visit: https://codecov.io/gh/apache/airflow. + +Generating Local Coverage Reports: +---------------------------------- +If you wish to obtain coverage reports for specific areas of the codebase on your local machine, follow these steps: + +a. Initiate a breeze shell. + +b. Execute one of the commands below based on the desired coverage area: + + - **Core:** ``python scripts/cov/core_coverage.py`` + - **REST API:** ``python scripts/cov/restapi_coverage.py`` + - **CLI:** ``python scripts/cov/cli_coverage.py`` + - **Webserver:** ``python scripts/cov/www_coverage.py`` + +c. After execution, the coverage report will be available at: http://localhost:28000/dev/coverage/index.html. Review Comment: ```suggestion c. After execution, the coverage report will be available at: http://localhost:28000/dev/coverage/index.html. .. note: In order to see the coverage report, you must start webserver first in breeze environment via `airflow webserver`. Once you enter `breeze`, you can start `tmux` (terminal multiplexer) and split the terminal (by pressing `ctrl-B "` for example) to contiinue testing and run the webserver in one tetminal and run tests in the second one (you can switch between the terminals with `ctrl-B <arrow>`). ``` -- 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. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org