Max 5 min for setup

Mocha integration

Installation


PREREQUISITES

  • Login to vigoreport
  • Create Project and get your project-key by clicking on edit icon.
  • Copy project-key project-key:6c32f1d263323cead18805129aac43b536a5xxxx
NOTE : If you don't provide the project-key, still you will find html report on local directory.
FOLLOW THIS STEPS
  • 1. Install mochavigo npm install mochavigo --saveHere is git repo.
  • 2. Configuration

    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}
    --no-exit
  • 3. Run tests by npm test or mocha ./tests\ *.js
  • Still have any issue, write us on hello@vigoreport.io, we will get back to you.

Public Dashboard

ProjectBadgeRepo
MongooseMongooseDashboard,GitHub
trailpack-annotationstrailpack-annotationsDashboard,GitHub