Giter Site home page Giter Site logo

articulate-mocha's Introduction

Articulate Mocha

Test Like You Talk

Articulate Mocha is the best way to create tests with Mocha and test like you talk. More often than not, we talk in symbols and "wait, no that other thing." The goal, instead, is to make it easier to think less about the code you have to write and more about the test logic you care about.

Articulate Mocha supports both the BDD and TDD APIs for the Mocha test framework. Start typing and get the best snippet experience you can get for Mocha test authoring.

Articulate Mocha is an accompanying extension to Articulate JS:

https://marketplace.visualstudio.com/items?itemName=cmstead.articulate-js

Installing Articulate JS

  1. Open Visual Studio Code1
  2. Open extension sidebar item
  3. Search for Articulate Mocha
  4. Click install button
  5. Click reload to complete installation (as needed)

Using Articulate JS

Actions

Surround With

Accidentally start writing a test and forget to write your 'it' expression? No worries, we got you.

Highlight the code for your test, right click, and select "surround with" you'll get all the same snippet goodness you're used to with less typing.

Snippets

Nearly all of the Mocha test API is covered in just a few simple snippets. Start typing and you'll get it all:

  • Describe -- Describe/Suite/Context
  • It -- It/Test/Specify
  • Before -- Before/SuiteSetup
  • After -- After/SuiteTeardown
  • BeforeEach -- BeforeEach/Setup
  • AfterEach -- AfterEach/Teardown
  • Pending tests -- It/Test/Specify

Planned Features

  • Toggle Only
  • Toggle Skip
  • Toggle Done Parameter

Version History

v1.0.0

First release

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.