-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
area: documentationanything involving docs or mochajs.organything involving docs or mochajs.orggood first issuenew contributors should look here!new contributors should look here!status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!
Description
I am attempting to build a custom third party reporter and I am using the simple example presented on this page : https://github.com/mochajs/mocha/wiki/Third-party-reporters. However, I cannot find any wiki or a simple explanation of how everything works.
Questions :
- Is the "test" parameter in the runner.on function a .js file containing the tests?
- If test is not the file containing the tests, how can I supply one?
- How do I run this reporter? Can I do something similar to "mocha testreporter.js" and it would know to check my test files?
- How do I include my test reporter in my existing project? Do I need to add it in the package.json? I do not want to publish it on npm, only to use it in my project.
What I am trying to achieve:
-> I need a simple custom test reporter which, based on my tests, can give me back the number of tests which have passed/failed / or a percentage. My plan would be to render my own html based on these results. For this reason, I am not interested in the already existing html test reporters, as I do not want to include error messages etc.
Metadata
Metadata
Assignees
Labels
area: documentationanything involving docs or mochajs.organything involving docs or mochajs.orggood first issuenew contributors should look here!new contributors should look here!status: accepting prsMocha can use your help with this one!Mocha can use your help with this one!