Gauge extension for Visual Studio Code
$ code --install-extension getgauge.gauge
This extension adds language support for the Gauge projects, including:
Shows step usages for a step implementation.
Execute command Gauge: Run All Specification
to run all the specification in specs
(default) directory. Use gauge.execution.specDirs
configuration to add or remove spec directories.
Execute command Gauge: Run Specification
to run the current open specification.
Execute command Gauge: Run Scenarios
to choose a scenario form current specification and run.
Execute command Gauge: Run Scenario At Cursor
to the scenario at cursor. It will ask to choose a scenario If cursor is not in scenario context.
Execute command Gauge: Repeat Last Run
to repeat last gauge execution.
Execute command Gauge: Re-Run Failed Scenario(s)
to repeat only failed scenarios from last gauge execution.
`spec` - for specification
`sce` - for scenario
`table:1` - table with one column
`table:2` - table with two columns
`table:3` - table with three columns
`table:4` - table with four columns
`table:5` - table with five columns
`table:6` - table with six columns
These configurations can be configured in VSCode settings.
gauge.launch.enableDebugLogs
: Starts gauge lsp server with log-leveldebug
. Defaults tofalse
.gauge.execution.debugPort
: Defaults debug port to9229
.gauge.execution.specDirs
: List of specification directories which can be run by executingGauge: Run All Specifications
from command palette.gauge.notification.suppressUpdateNotification
: Stops showing notifications for gauge-vscode plugin auto-updates. Defaults tofalse
.
$ npm run build
This will create gauge-<version>.vsix
file which can be installed via VScode's Install from VSIX.
Nightly version of vscode is available in bintray. To install a nightly version,
- Uninstall existing version of gauge extension.
- Download the latest nightly version of gauge extension from bintray.
- Install gauge extension from source.
- Files not associated with Gauge.
If gauge features are not listed, the gauge extension may not be activated. The
.spec
and.cpt
files may be associated with a different language. To fix this, you can add this to user settings.
"files.associations": {
"*.spec": "gauge",
"*.cpt": "gauge"
}
Refer our Troubleshooting guide.
Please see below for the best place to ask a query:
- How do I? -- Stack Overflow
- I got this error, why? -- Stack Overflow
- I got this error and I'm sure it's a bug -- file an issue
You can also easily report issues from VSCode itself by executing command
Gauge: Report Issue
from the command pallete. - I have an idea/request -- file an issue
- Why do you? -- Google Groups
- When will you? -- Google Groups