How to generate HTML test report files? #52054
-
If we use mocha, we can generate HTML test report files by |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 11 replies
-
Node doesn't have a built-in HTML reporter, but it supports custom reporters 🙂 |
Beta Was this translation helpful? Give feedback.
-
Is there any counterpart of |
Beta Was this translation helpful? Give feedback.
-
I notice that mochawesome-report-generator can take the JSON output from |
Beta Was this translation helpful? Give feedback.
-
I do not know of any existing tool that would create that output, but the test runner allows using custom reporters, which means you could write a reporter that fits your needs 🙂 You could base on the official reporters as an example: Lines 5 to 10 in 3ee0d83 |
Beta Was this translation helpful? Give feedback.
-
@jim-king-2000 I have created a custom reporter for this, here you go: https://www.npmjs.com/package/@reporters/mocha |
Beta Was this translation helpful? Give feedback.
@jim-king-2000 I have created a custom reporter for this, here you go: https://www.npmjs.com/package/@reporters/mocha