reportme-mocha v1.0.56
reportme-mocha
Simple, command-line tool to generate interactive test report for Mocha tests using d3.js.
Installation
npm i reportme-mochaUsage
There is only one rule to follow: Test files using Mocha.js should be organized inside test directory in the root of the project. They can be organized in sub-directories.
Add a script in your package.json and use the reportme command for example:
// package.json
"scripts": {
"mochaReport": "reportme"
}When this script executed with
npm run mochaReportit will do 3 things:
- run all the tests inside
testdirectory and generate a.csvcustom report insidereportsdirectory (will be created if doesn't exist). - will copy (if not copied already) an
.htmlfile namedindex.htmlinside your projectroot/reporterdirectory (will be created if doesn't exist). - will start an express server on localhost port 3000 serving the
.csvfiles andindex.html.
When you open localhost:3000 you will be presented with scatter plot matrix view of the test results.
Interactive test report mode on :)
Dependencies
At this moment only Chai should be installed prior running the reportme command. All the other dependancies are included (mocha, express, typescript).
Documentation
TBD
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago