Skip to content

VigoReport/mochaVigo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mochaVigo- Custom reporter for web.

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

##Public Dashboard

  1. Mongoose
  2. Trailpack-annotations

##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

If you don't provide the project-key, still you will find html report on local directory.

No need of html report then just pass --reporter-options localReport=false

##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}

Command and description for --reporter-options

Command Value Description
project-key 129aac43b536a5xxxx key used to sync your build with vigoreport
localReport `true
autoOpen `true