-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
📝 Docs: No documentation on third party reporters example #3104
Comments
We definitely need better documentation on this.* To answer your immediate questions as best I can off the top of my head: 4: Mocha searches for the specified reporter in three places:
3: You select a reporter via the 2/1: The
Additionally, if your reporter's constructor performs I'd also recommend taking a look at Mocha's built-in reporters' sources, including the base one (from which the others inherit common functionality), for more examples of what can be done. * Quoting a recent reply of mine to a similar question on Gitter:
|
@JoshuaKGoldberg just want to confirm if this is still accepting PRs as it's been a while, would be happy to help out with this one :) |
Good question, thanks for checking @mark-wiemer! Yes, this is still valid 👍. I think for now, sending an edit to https://github.com/mochajs/mocha/wiki/Third-party-reporters would be the right next step. |
@JoshuaKGoldberg just an FYI, doesn't look like there is any review process in place for edits to the wiki. I tried cloning the repo locally but got some errors as filenames have colons in them, which Windows doesn't like. I'm going to go ahead and make small changes without pinging, and I'll let you know when I make a big update (I'll mark it as "experimental" for viewers). I'll open a separate issue for my inability to clone the wiki repo |
Quick FYI, I'm still here! Just had to go away for 40 days for the holidays, it was a wild time but I'm back and still gonna look into this one when I give myself some Mocha time :) |
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 :
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.
The text was updated successfully, but these errors were encountered: