Gauge provides only few IDE plugins. The complete list can be found here: https://gauge.org/plugins/
This description describes how to setup VSCode and IntelliJ plugins.
Fist of all install Gauge
itself.
Install gauge with brew:
brew update
brew install gauge
There is an open issue regarding gauge telemetry function, that can stop the gauge plugin. To avoid this turn the feature off. Here is the description of the problem: getgauge/Intellij-Plugin#392
Turn off gauge telemetry:
gauge telemetry off
Install gauge plugins
gauge install js
gauge install java
gauge install python
Install gauge python package:
pip install getgauge
- Install gauge plugin:
Preferences... -> Plugins -> Gauge
- Create a new Gauge project:
File -> New -> Project...
- Select Gauge as project type on the left, then click
Next
- Select the folder that you would use with Gauge plugin, then click
Finish
. Now there are generated files that needed for a Gauge project and added sample files, too. There are 3 files that's needed for sure:java.properties
,manifest.json
,<project_name>.iml
, other can be deleted. - Add
STEP_IMPL_DIR = java/src/test/java
line to the end ofjava.properies
- Modify
sourceFolder
field undercontent
element in<project_name>.iml
. E.g: `
Install Gauge extension
- Create inside the
env/default
folder ajs.properties
file - Change the value
Language
field ofmanifest.json
tojs
- Reload the window
- Create inside the
env/default
folder apython.properties
file - Change the value
Language
field ofmanifest.json
topython
- Reload the window
In env/default
folder always one language specific properties file can remain.
The "Language"
field of manifest.json
file should match the properties file in env/default
folder
Here you can fine language specific properties files: https://github.com/vmatyusGitHub/gauge-properties