1.0.9 • Published 8 years ago

mochavigo v1.0.9

Weekly downloads
255
License
ISC
Repository
github
Last release
8 years ago

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

  2. 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}