I want to add a third party reporter to Mocha
A reporter below it in the above link Has been asked to select:
var mocha = new mocha ({ui: 'tdd', reporter: 'exit'});
Xuyant comes in bundle with the spell. Now I want to add 'Istanbul' or 'LCOV' reporter to add to Mocha. How can I do this?
You must first establish your correspondent through NMP if you have installed the Mocha globally. , Then you have to install your reporter globally.
Install npm mocha-lcov-reporter -g
Then, to add the path to your reporter in the job:
var mocha = new mocha ({ui: 'tdd', reporter: './node_modules/mocha-lcov-reporter'});
I have not tried this example, but I think it works.
No comments:
Post a Comment