uranusjr commented on code in PR #27901:
URL: https://github.com/apache/airflow/pull/27901#discussion_r1031914073
##########
TESTING.rst:
##########
@@ -61,20 +61,51 @@ Running Unit Tests from PyCharm IDE
To run unit tests from the PyCharm IDE, create the `local virtualenv
<LOCAL_VIRTUALENV.rst>`_,
select it as the default project's environment, then configure your test
runner:
-.. image:: images/configure_test_runner.png
+.. image:: images/pycharm/configure_test_runner.png
:align: center
:alt: Configuring test runner
and run unit tests as follows:
-.. image:: images/running_unittests.png
+.. image:: images/pycharm/running_unittests.png
:align: center
:alt: Running unit tests
**NOTE:** You can run the unit tests in the standalone local virtualenv
(with no Breeze installed) if they do not have dependencies such as
Postgres/MySQL/Hadoop/etc.
+Running Unit Tests from PyCharm IDE using Breeze
+------------------------------------------------
+
+Ideally, all unit tests should be run using the standardized Breeze
environment. While not
+as convenient as the one-click "play button" in PyCharm, the IDE can be
configured to do
+this in two clicks.
+
+1. Add Breeze as an "External Tool"
+ a. File > Settings > Tools > External Tools
+ b. Click the little plus symbol to open the "Create Tool" popup and fill it
out:
+
+.. image:: images/pycharm/pycharm_create_tool.png
+ :align: center
+ :alt: Installing Python extension
+
+2. Add the tool to the context menu
+ a. File > Settings > Appearance and Behavior > Menus and Toolbars > Project
View Popup Menu
+ b. Click on the list of entries where you would like it to be added. Right
above or below
+ "Project View Popup Menu Run Group" may be a good choice, you can drag
and drop this list
+ to rearrange the placement later.
+ c. Click the little plus at the top of the popup window
+ d. Find your "External Tool" in the new "Choose Actions to Add" popup and
click OK. If you
+ followed the image above, it will be at External Tools > External Tools >
Breeze
Review Comment:
```suggestion
a. Navigate to File > Settings > Appearance and Behavior > Menus and
Toolbars > Project View Popup Menu.
b. Click on the list of entries where you would like it to be added.
Right above or below
"Project View Popup Menu Run Group" may be a good choice, you can drag
and drop this list
to rearrange the placement later.
c. Click the little plus at the top of the popup window.
d. Find your "External Tool" in the new "Choose Actions to Add" popup and
click OK. If you
followed the image above, it will be at External Tools > External Tools
> Breeze.
```
Maybe unify the style of bullet items?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]