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
##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
If you don't provide the
project-key
, still you will findhtml report
on local directory.No need of
html report
then just pass--reporter-options localReport=false
##Usage and Options
- Add MochaVigo to your project:
npm install --save-dev mochavigo
- Configuration
Use mocha option --reporter-options
ex.
mocha testfile.js --reporter mochavigo --reporter-options project-key={yourkey}
var mocha = new Mocha({
reporter: 'mochavigo'
reporter:{
options:{
project-key:{yourkey}
}
}
});
Add this options in mocha.opts file
--reporter mochavigo
--reporter-options project-key={yourkey}
Command | Value | Description |
---|---|---|
project-key |
129aac43b536a5xxxx |
key used to sync your build with vigoreport |
localReport |
`true | |
autoOpen |
`true |