Skip to content

Commit

Permalink
. e add mocha multi reporter output
Browse files Browse the repository at this point in the history
  • Loading branch information
mch committed Jan 10, 2025
1 parent ba4cc55 commit 02322cb
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .mocha-multi-reporters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"reporterEnabled": "spec,mocha-junit-reporter",
"mochaJunitReporterReporterOptions": {
"mochaFile": "test-reports/mocha-test-results.xml"
}
}
4 changes: 2 additions & 2 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ gulp.task(
gulp.task("unitTest", function () {
return gulp.src(paths.mochaTests, { read: false }).pipe(
mocha({
reporter: "mocha-junit-reporter",
reporter: "mocha-multi-reporters",
reporterOptions: {
mochaFile: 'test-reports/mocha-test-results.xml',
configFile: '.mocha-multi-reporters.json',
},
slow: 500,
timeout: 5000,
Expand Down
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"jsdoc-to-markdown": "^9.1.1",
"mocha": "^11.0.1",
"mocha-junit-reporter": "^2.2.1",
"mocha-multi-reporters": "^1.5.1",
"np": "^10.0.2",
"npm-check-updates": "^17.0.0",
"nyc": "^17.0.0",
Expand Down

0 comments on commit 02322cb

Please sign in to comment.