- Go to
File->New Project. - Choose
Gauge Test Projectunder Visual C# Test category.
- 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.
Gauge specs are in Markdown syntax. This plugin highlights Specifications, Scenarios, Steps and Tags.
Steps with missing implementation are also highlighted.
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.
Jump from Step text to it's implementation.
Usage: Right Click -> Go to Declaration or hit F12
Implement an unimplemented step - generates a method template, with a Step attribute having this Step Text.
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.
- You can right-click on
specsdirectory or any nested directory, chooseAdd->New Item-> Go toGaugeunderVisual C# Items. - Choose
SpecificationorConceptfile type. - Enter file name and click
Add.





