Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 2.31 KB

File metadata and controls

70 lines (43 loc) · 2.31 KB

Features

Creating a new Gauge Project

  • Go to File -> New Project.
  • Choose Gauge Test Project under Visual C# Test category.

ProjectCreation

  • Choose the Project location and Project Name.
  • Click OK.

This should setup a new Gauge project, and add the required meta data for Gauge to execute this project.

Alternately, you can create a Gauge project from command-line as:

mkdir <project_name>
gauge --init csharp

This creates <project_name>.sln file which can be opened with Visual Studio.

Syntax Highlighting

Gauge specs are in Markdown syntax. This plugin highlights Specifications, Scenarios, Steps and Tags.

Steps with missing implementation are also highlighted.

syntax highlighting

Autocomplete

This plugin hooks into VisualStudio Intellisense, and brings in autocompletion of Step text. The step texts brought in is a union of steps already defined, concepts defined, and step text from implementation.

Hint: Hit Ctrl + Space to bring up the Intellisense menu.

AutoComplete

Navigation

Jump from Step text to it's implementation.

Usage: Right Click -> Go to Declaration or hit F12

Smart Tag

Implement an unimplemented step - generates a method template, with a Step attribute having this Step Text.

Quick fix

Test Runner

Open the Test Explorer : Menu -> Test -> Windows -> Test Explorer All the scenarios in the project should be listed. Run one or more of these tests.

Test Explorer

Create Spec and Concept files

  • You can right-click on specs directory or any nested directory, choose Add -> New Item -> Go to Gauge under Visual C# Items.
  • Choose Specification or Concept file type.
  • Enter file name and click Add.

Create File Type