.. cssclass:: topic
To install a plugin and add the plugin to a Gauge project, use the following command from within the project directory:
.. cssclass:: dynamic-content java
gauge install java.. cssclass:: dynamic-content javascript
gauge install js.. cssclass:: dynamic-content python
gauge install python.. cssclass:: dynamic-content ruby
gauge install ruby.. cssclass:: dynamic-content csharp
gauge install csharpIf the plugin is already installed, Gauge just adds the plugin to the project.
Note
The html-report and screenshot plugins are installed automatically on the first run.
To install a specific version of a plugin, use the --version flag on your command line:
.. cssclass:: dynamic-content java
gauge install java --version <plugin_version>.. cssclass:: dynamic-content javascript
gauge install js --version <plugin_version>.. cssclass:: dynamic-content python
gauge install python --version <plugin_version>.. cssclass:: dynamic-content ruby
gauge install ruby --version <plugin_version>.. cssclass:: dynamic-content csharp
gauge install csharp --version <plugin_version>You can also install a plugin from a zip file instead of downloading from the plugin repository by using the following command:
.. cssclass:: dynamic-content java
gauge install java --file ZIP_FILE_PATH.. cssclass:: dynamic-content javascript
gauge install js --file ZIP_FILE_PATH.. cssclass:: dynamic-content python
gauge install python --file ZIP_FILE_PATH.. cssclass:: dynamic-content ruby
gauge install ruby --file ZIP_FILE_PATH.. cssclass:: dynamic-content csharp
gauge install csharp --file ZIP_FILE_PATHYou can download the latest version of a plugin from the Releases section of the plugin's GitHub repository. See the plugin list to find the Gauge repositories.
.. cssclass:: dynamic-content windows
By default, the plugins are stored at ``%APPDATA%\gauge\plugins`` in Windows.
.. cssclass:: dynamic-content macos
By default the plugins are stored at ``~/.gauge/plugins`` in macOS X and Linux systems.
.. cssclass:: dynamic-content linux
By default the plugins are stored at ``~/.gauge/plugins`` in Linux systems.
You can also install the plugins at different locations.
- To install plugins at a different location, set
GAUGE_HOMEenvironment variable to the custom location. - Run the
plugin installcommand. The plugin is installed at theGAUGE_HOMEcustom location.
For troubleshooting information during plugin installation, see :ref:`Troubleshooting plugin installation <troubleshoot_plugin_installation>`.
You can update a plugin by using the gauge update command. This command downloads the latest compatible plugin from the Gauge plugin repository .
.. cssclass:: dynamic-content java
gauge update java.. cssclass:: dynamic-content javascript
gauge update js.. cssclass:: dynamic-content python
gauge update python.. cssclass:: dynamic-content ruby
gauge update ruby.. cssclass:: dynamic-content csharp
gauge update csharpNote
Every Gauge plugin when published has metadata indicating the min and max version of Gauge that the plugin is compatible with. The gauge update command is used when installing plugins on a system running a particular gauge version.
- To update a plugin to a specific version, use the
--versionflag as follows:
.. cssclass:: dynamic-content java
gauge update java --version <plugin_version>.. cssclass:: dynamic-content javascript
gauge update js --version <plugin_version>.. cssclass:: dynamic-content python
gauge update python --version <plugin_version>.. cssclass:: dynamic-content ruby
gauge update ruby --version <plugin_version>.. cssclass:: dynamic-content csharp
gauge update csharp --version <plugin_version>- To update all the installed plugins, use the following command:
gauge update --allUninstall the plugins by using the following command:
.. cssclass:: example
Example:
.. cssclass:: dynamic-content java
gauge uninstall java.. cssclass:: dynamic-content javascript
gauge uninstall js.. cssclass:: dynamic-content python
gauge uninstall python.. cssclass:: dynamic-content ruby
gauge uninstall ruby.. cssclass:: dynamic-content csharp
gauge uninstall csharpTo uninstall a specific version of the plugin, use the
--version flag.
.. cssclass:: example
Example:
.. cssclass:: dynamic-content java
gauge uninstall java --version <plugin_version>.. cssclass:: dynamic-content javascript
gauge uninstall js --version <plugin_version>.. cssclass:: dynamic-content python
gauge uninstall python --version <plugin_version>.. cssclass:: dynamic-content ruby
gauge uninstall ruby --version <plugin_version>.. cssclass:: dynamic-content csharp
gauge uninstall csharp --version <plugin_version>If :ref:`plugin installation <install_plugins>` fails due to a network connection issue, you can manually download the plugin distributable zip and install the plugin by using the following command:
.. cssclass:: dynamic-content java
gauge install java -f path_to_zip_file.. cssclass:: dynamic-content javascript
gauge install js -f path_to_zip_file.. cssclass:: dynamic-content python
gauge install python -f path_to_zip_file.. cssclass:: dynamic-content ruby
gauge install ruby -f path_to_zip_file.. cssclass:: dynamic-content csharp
gauge install csharp -f path_to_zip_file- You can find the plugin zip files in the
Releasessection of the plugin GitHub repositories. See the plugin list for plugin repository details.
Plugins are installed in the .gauge/plugins directory in the user's home directory. You can check this directory to manually install or uninstall plugins and also to verify the installed plugins.
.. cssclass:: dynamic-content windows
The plugin installation directory for ``Windows`` operating system is ``%APPDATA%\.gauge\plugins``
.. cssclass:: dynamic-content macos
The plugin installation directory for ``macOS X`` operating system is ``~/.gauge/plugins``
.. cssclass:: dynamic-content linux
The plugin installation directory for ``Linux`` operating system is ``~/.gauge/plugins``
The different types of plugins currently supported by Gauge are as follows:
- :ref:`Language Runners/Plugins <language_plugins>`
- :ref:`Reporting Plugins <reporting_plugins>`
- :ref:`IDE Plugins <ide_plugins>`
- :ref:`Other Plugins <other_plugins>`
Language plugins or language runners enable the users to write the implementation of specifications in a language of the user's choice. When you intitialize a Gauge project, the language plugin is installed by default.
.. cssclass:: dynamic-content csharp
To run Gauge projects in the .Net framework, use the following command:
.. code-block:: console
gauge install csharp
For more information about running and configuring CSharp with Gauge, read `the Gauge GitHub repository <https://github.com/getgauge/gauge-csharp>`__
To run Gauge projects in the .Net Core framework, use the following command:
.. code-block:: console
gauge install dotnet
For more information about running and configuring .Net with Gauge, read `the Gauge GitHub repository <https://github.com/getgauge/gauge-dotnet>`__
.. cssclass:: dynamic-content java
To run Gauge projects with Java, use the following command:
.. code-block:: console
gauge install java
For more information about running and configuring Java with Gauge, read `the Gauge GitHub repository <https://github.com/getgauge/gauge-java>`__
.. cssclass:: dynamic-content javascript
To run Gauge projects with JavaScript, use the following command:
.. code-block:: console
gauge install js
For more information about running and configuring JavaScript with Gauge, read `the Gauge GitHub repository <https://github.com/getgauge/gauge-js>`__
.. cssclass:: dynamic-content python
For more information about running and configuring Python with Gauge,
.. code-block:: console
gauge install python
For more information about running and configuring Python with Gauge, read `the Gauge GitHub repository <https://github.com/getgauge/gauge-python>`__
.. cssclass:: dynamic-content ruby
To run Gauge projects with Ruby, use the following command:
.. code-block:: console
gauge install ruby
For more information about running and configuring Ruby with Gauge, read `the Gauge GitHub repository <https://github.com/getgauge/gauge-ruby>`__
Reporting plugins generate execution reports in various formats. Depending on the format of the report you need, you can install the appropriate plugin.
gauge install html-reportFor more information about HTML report generation plugin for Gauge, see Gauge GitHub for HTML report generation .
gauge install xml-reportFor more information about XML-report generation plugin for Gauge, see Gauge GitHub for XML report generation .
gauge install flashFor more information about Flash plugin for Gauge, see Gauge GitHub for Flash .
Gauge has plugins for popular IDEs that improve the experience of authoring test specifications. We recommend that you use the VSCode plugin. However, Gauge can be used without a plugin on any editor of your choice.
.. cssclass:: dynamic-content vscode
Gauge projects can be created and run in VS Code by using the `Gauge extension <https://marketplace.visualstudio.com/items?itemName=getgauge.gauge>`__ for VS Code.
This plugin currently supports Gauge with Java, JavaScript, Ruby, Python, C# (.Net Core), and TypeScript.
The spectacle plugin generates a readable HTML format of the specifications:
gauge install spectacleFor more information about gauge spectacle, see Gauge GitHub for Spectacle
Gauge also supports the dependency management workflow with custom plugins for Maven and Gradle.