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
- Login to Vigoreport
- Create Project and get your project-key by clicking on edit icon.
- Copy project-key
project-key:6c32f1d263323cead18805129aac43b536a5xxxx
Usage and Options
- Add MochaVigo to your project:
npm install --save-dev mochavigo
- Configuration
### Command CLI
Use mocha option --reporter-options
ex.
mocha testfile.js --reporter mochavigo --reporter-options project-key={yourkey}
### Programatically
var 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}