Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>livedocNew to Visual Studio Code? Get it now.
livedoc

livedoc

dotNetProfessional

|
1,344 installs
| (0) | Free
Tools and snippets for working with the livedoc-mocha testing library
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Official VSCode plugin for livedoc

LiveDoc-mocha is a library for adding behavior using the language Gherkin, to the mocha testing library. The Gherkin syntax uses a combination of keywords and natural language. The specifications are written in plain english and are meant to be read by anyone on your team and used to aid in improving collaboration, communication and trust within the team. These specifications also help to reduce ambiguity, confusion about what needs to be built, rules and importantly why something is being built. This is the first step to the concept of Living Documentation.

This plugin requires the livedoc-mocha javascript library. It makes using the library easier with support for formatting and useful code snippets.

Full details of the livedoc-mocha library can be found on the project site:

  • Features

  • Using

  • Configuration

Demo

Features

  • Formatting of Scenario Outline tables and Data Tables with styling
  • Code snippets

Code Snippets

snippet purpose
ld-feature Adds a basic feature definition.
ld-background Adds a basic background definition.
ld-scenario Adds a basic scenario definition
ld-scenario-outline Adds a basic scenario outline definition.
ld-given Adds a basic given step definition.
ld-when Adds a basic when step definition.
ld-then Adds a basic then step definition.
ld-and Adds a basic and step definition.
ld-but Adds a basic but step definition.
ld-step Adds a step definition where you can choose the type from given, when, then, and, but
ld-step-datatable Extends ld-step including a 2x1 data table in the description
ld-step-datatable-4x Extends ld-step including a 4x1 data table in the description
ld-step-docString Extends ld-step including a docString in the description

Commands

  • livedoc format data tables - Formats all data tables found in the active document.

Using

This extension assumes that the livedoc-mocha javascript library is installed. This can be done with the following command

> npm install livedoc-mocha

For full details on this powerful library see the project site

Have a suggestion for the project? Submit a an issue on our GitHub page.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft