8000 GitHub - riju91/gauge-vscode: A Visual Studio Code plug-in for Gauge
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

riju91/gauge-vscode

 
 

Repository files navigation

gauge-vscode

Released Version Build Status Build status

Gauge extension for Visual Studio Code

Install

$ code --install-extension getgauge.gauge

This extension adds language support for the Gauge projects, including:

Code Completion for steps, parameters and tags

Code Completion preview

Goto definition for steps

Goto Definition preview

Diagnostics

Diagnostics preview

Run specifications and scenarios using codeLens

Execution preview

Formating

Formatting preview

References

Shows step usages for a step implementation.

Run all specifications from command palette

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.

Run specification from command palette

Execute command Gauge: Run Specification to run the current open specification.

Run scenarios from command palette

Execute command Gauge: Run Scenarios to choose a scenario form current specification and run.

Run scenario at cursor from command palette

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.

Repeat last gauge execution from command palette

Execute command Gauge: Repeat Last Run to repeat last gauge execution.

Re-run failed scenarios from previous run

Execute command Gauge: Re-Run Failed Scenario(s) to repeat only failed scenarios from last gauge execution.

Snippets for specification, scenarios and tables.

`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

Configuration

These configurations can be configured in VSCode settings.

  • gauge.launch.enableDebugLogs : Starts gauge lsp server with log-level debug. Defaults to false.
  • gauge.execution.debugPort : Defaults debug port to 9229.
  • gauge.execution.specDirs : List of specification directories which can be run by executing Gauge: Run All Specifications from command palette.
  • gauge.notification.suppressUpdateNotification : Stops showing notifications for gauge-vscode plugin auto-updates. Defaults to false.

Install from source

$ npm run build

This will create gauge-<version>.vsix file which can be installed via VScode's Install from VSIX.

Install Nightly version

Nightly version of vscode is available in bintray. To install a nightly version,

Troubleshooting

  • 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"
}

Facing other issues?

Refer our Troubleshooting guide.

Talk to us

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

About

A Visual Studio Code plug-in for Gauge

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 80.3%
  • CSS 8.6%
  • HTML 7.9%
  • JavaScript 2.4%
  • Other 0.8%
0