|  | 
| 1 | 1 | 
 | 
| 2 | 2 | # How to use plugin | 
| 3 | 3 | 
 | 
| 4 |  | -### Check connection status | 
| 5 |  | -You must be connected to server to use plugin. \ | 
| 6 |  | -Connection status can be checked in the status bar. | 
|  | 4 | +### Status bar icons | 
| 7 | 5 | 
 | 
| 8 |  | - | 
|  | 6 | +Before you start working with UTBot, it is worth to pay attention to the status bar in IDE | 
|  | 7 | +and UTBot-specific controls there: | 
| 9 | 8 | 
 | 
| 10 |  | -### Configure project and generate json files | 
|  | 9 | +<img src="images/plugin_usage/statusbar/status-bar-icons.png" alt="drawing" height="25"/> | 
| 11 | 10 | 
 | 
| 12 |  | -Your project must be configured by server to generate tests. | 
|  | 11 | +#### Connection status | 
| 13 | 12 | 
 | 
| 14 |  | -To send request for project configuration or json files generation, | 
| 15 |  | -click on `connection status` in the status bar and choose a suitable option: | 
|  | 13 | +Connection status indicates whether the client and the server have established a connection.  | 
|  | 14 | +If the connection is lost, you'll see  | 
| 16 | 15 | 
 | 
| 17 |  | - | 
|  | 16 | +<img src="images/plugin_usage/statusbar/not-connected.png" alt="drawing" height="25"/> | 
| 18 | 17 | 
 | 
| 19 |  | -Plugin sends request for project configuration when you open  | 
| 20 |  | -the project. Sometimes configuration fails, then after changing | 
| 21 |  | -your project you need to send the request for project configuration. | 
|  | 18 | +In such case you need to check if UTBot Docker container is still running. | 
| 22 | 19 | 
 | 
| 23 |  | -### Choose source folders | 
|  | 20 | +Clicking on the connection status icon, you see the list of actions can be invoked: | 
| 24 | 21 | 
 | 
| 25 |  | -To generate tests for project, server needs to know the folders source files are located in. | 
| 26 |  | -The source folders are marked with green icons in the project view: | 
|  | 22 | +<img src="images/plugin_usage/statusbar/status-bar-actions.png" alt="drawing" height="100"/> | 
| 27 | 23 | 
 | 
| 28 |  | - | 
|  | 24 | +#### Verbose mode | 
| 29 | 25 | 
 | 
| 30 |  | -You can mark/unmark selected folders from context menu.  | 
|  | 26 | +You can change the verbose option from status bar.  | 
| 31 | 27 | 
 | 
| 32 |  | - | 
|  | 28 | +If verbose mode is enabled or disabled, it is represented as follows: | 
| 33 | 29 | 
 | 
| 34 |  | -### How to request tests generation | 
|  | 30 | +<img src="images/plugin_usage/statusbar/verbose-on.png" alt="drawing" height="23"/>  | 
| 35 | 31 | 
 | 
| 36 |  | -Open a c/cpp file, right click in the text editor and  | 
| 37 |  | -choose suitable option in the context menu: | 
|  | 32 | +<img src="images/plugin_usage/statusbar/verbose-off.png" alt="drawing" height="23"/>  | 
| 38 | 33 | 
 | 
| 39 |  | - | 
|  | 34 | +### Plugin description | 
| 40 | 35 | 
 | 
| 41 |  | -For example, to generate tests for the folder, right click on it in the project view | 
| 42 |  | -and choose `Generate for folder`: | 
|  | 36 | +Main UI elements of the plugin are: | 
|  | 37 | +- Status bar icons, they show connection status and verbose mode option | 
|  | 38 | +- `UTBot consoles`, a window to show logs from server (GTest log, Server log) and plugin (Client log) | 
|  | 39 | +- `UTBot targets`, a window to show targets found by server in current project | 
|  | 40 | +- `UTBot Source Directories`, a view to show source directories marked green | 
| 43 | 41 | 
 | 
| 44 |  | - | 
|  | 42 | + | 
| 45 | 43 | 
 | 
| 46 |  | -### See logs from server and client | 
|  | 44 | +#### Generate tests | 
| 47 | 45 | 
 | 
| 48 |  | -You can see messages that are sent to the server and server own logging messages. Just click on the `UTBot consoles` tab in the bottom right corner: | 
|  | 46 | +You can trigger tests generation from: | 
| 49 | 47 | 
 | 
| 50 |  | - | 
|  | 48 | +- Context menu in editor:  | 
| 51 | 49 | 
 | 
| 52 |  | -add choose the required tab: | 
|  | 50 | +<img src="images/plugin_usage/generate/editor-gen.png" alt="drawing"/>  | 
|  | 51 | + | 
|  | 52 | +- Context menu in project view: | 
|  | 53 | + | 
|  | 54 | +<img src="images/plugin_usage/generate/project-view-gen.png" alt="drawing" height="300"/>  | 
|  | 55 | + | 
|  | 56 | +- Search window: pressing `Shift` two times and searching for action | 
|  | 57 | + | 
|  | 58 | +<img src="images/plugin_usage/generate/gen-search.png" alt="drawing" height="300"/>  | 
| 53 | 59 | 
 | 
| 54 |  | - | 
|  | 
0 commit comments