PyCharm Plugin
Vedro PyCharm plugin streamlines the process of executing and analyzing individual and parameterized scenarios right within your IDE, reducing the need to context-switch between your terminal and the PyCharm environment.
Installation
There are two ways to install the plugin:
- From the Marketplace: Go to the plugin page and install it directly from there
- From PyCharm: Navigate to
Preferences -> Plugins -> Marketplace
in the PyCharm menu. From there, search for "Vedro" in the marketplace, then click the "Install" button
Usage
Once installed, the Vedro plugin allows for easy execution of individual and parameterized scenarios.
For individual scenarios, a green triangle appears next to the Scenario
declaration. Clicking this triangle runs the selected scenario.
When working with parameterized scenarios, a double green triangle appears near the @vedro.params
decorator. Clicking this double triangle runs the parameterized scenario.
A significant benefit of the plugin is that it provides a detailed report within the IDE. It presents all necessary information regarding the scenario execution, making it easier to identify and resolve issues.
Configuration
The PyCharm plugin for Vedro comes with a default configuration of -r rich pycharm --pycharm-no-output
runner options. However, you can extend these options according to your requirements.
To adjust the runner options, select "Edit configurations…" from the PyCharm menu. This opens a dialogue where you can add any framework arguments to the "Runner options":
For instance, you could add the --show-timings
option to your runner options. This option will display the execution times for your scenarios.
The --pycharm-no-output
option in the default configuration is included for backward compatibility