mochavigo

1.0.9 • Public • Published

mochaVigo

MochaVigo is a custom reporter for use with the Javascript testing framework, mocha. It sends your test result to web where you can get visualize your test suites.

Sample Report

You can show sample report Here

Prerequisites

You will need project-key For the configuration.

Step to get project-key

  1. Login to Vigoreport
  2. Create Project and get your project-key by clicking on edit icon.
  3. Copy project-key project-key:6c32f1d263323cead18805129aac43b536a5xxxx

Usage and Options

  1. Add MochaVigo to your project:

npm install --save-dev mochavigo

  1. Configuration

### Command CLI Use mocha option --reporter-options

ex. mocha testfile.js --reporter mochavigo --reporter-options project-key={yourkey}

### Programatically

 var mocha = new Mocha({
    reporter: 'mochavigo'
    reporter:{
        options:{
          project-key:{yourkey}
        }
    }
});

#### Config with mocha.opts

Add this options in mocha.opts file

--reporter mochavigo
--reporter-options project-key={yourkey}

Package Sidebar

Install

npm i mochavigo

Weekly Downloads

2

Version

1.0.9

License

ISC

Last publish

Collaborators

  • nishchit14