A Visual Studio Code plug-in for Gauge
Clone or download
Permalink
Failed to load latest commit information.
.vscode Refactoring spec explorer (#202) Apr 5, 2018
build push missing copy.js file Apr 20, 2018
images added symbols to readme May 8, 2018
resources Spec Explorer Modifications, #148 (#149) Mar 5, 2018
snippets Changed concept snippet prefix to cpt, #153 May 22, 2018
src Fixing execution hanging aftre npm installation #299 Oct 30, 2018
syntaxes use 'gauge' as language identifier, with markdown for syntaxes (#61) Nov 27, 2017
test Removing test.only Jul 17, 2018
.gitignore applies file associations by default to workspace settings. #232 (#236) Apr 23, 2018
.travis.yml shows welcome page by default only if gauge project is open #249 May 7, 2018
.vscodeignore updated readme (#253) May 8, 2018
LICENSE Initial commit Jul 18, 2017
README.md Add command to create specification template. #162 (#267) May 29, 2018
appveyor.yml fixing issue with gauge installed via node, #290 (#297) Oct 29, 2018
language-configuration.json Added configuration to auto close parameters Aug 18, 2017
package-lock.json fixing issue with gauge installed via node, #290 (#297) Oct 29, 2018
package.json fixing issue with gauge installed via node, #290 (#297) Oct 29, 2018
publish.sh changed publish script to read vsix from artifacts folder Apr 19, 2018
run_test.ps1 set gauge_prefix as string in env Apr 20, 2018
tsconfig.json Basic vscode extension setup Jul 18, 2017
tslint.json Adding linter Feb 15, 2018
webpack.config.js remove copy-webpack-plugin, replace with explicit copy Apr 20, 2018

README.md

Released Version Build Status Build status

Gauge extension for Visual Studio Code

Install

$ code --install-extension getgauge.gauge

Other Install options

Features

Create new project

Execute the Command Gauge: Create new Gauge Project and select the appropriate template to create a new Gauge Project

Create New Project preview

Code Completion

Code Completion preview

Goto Definition

Goto Definition preview

Diagnostics

Diagnostics preview

Format Specifications

Formatting preview

Symbols

Symbols preview

References

References preview

Run specifications and scenarios

Using Codelens

Run Specs/Scenarios preview

Using command palette

* Run All Specification
* Run Specification
* Run Scenarios
* Run Scenario At Cursor
* Repeat Last Run
* Gauge: Re-Run Failed Scenario(s)

Debug specifications and scenarios

Debug Specs/Scenarios preview

Suport for Debugging of step implementations in JS, Python and Ruby

Reports

View execution reports inside VS Code

Execution Report preview

Test Explorer

Test Explorer preview

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

To override default configurations in VSCode settings

  • gauge.launch.enableDebugLogs: Starts gauge lsp server with log-level debug, defaults to false
  • gauge.execution.debugPort: Debug port, defaults to 9229
  • gauge.notification.suppressUpdateNotification: Stops notifications for gauge-vscode plugin auto-updates, defaults to false
  • gauge.create.specification.withHelp: Crete specification template with help comments, defults to true

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 versions

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

Troubleshooting

If gauge features are not activated, check file associations for .spec and .cpt it maybe used by another plugin. To fix this, 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