jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/341377 )
Change subject: build: karma now reports with mocha formatter
......................................................................
build: karma now reports with mocha formatter
The progress reporter is quite nice to avoid spammy output to the
terminal, but it is not very human friendly when trying to find out what
is breaking.
Mocha has a very nice reporting organized as modules and list items for
each of the tests:
ext.cx.tools.template
✖ Equivalent template exists
✔ Adapting a template not existing in target language
✖ Adapting template having invalid title
✖ Template name and params adaptation using templatedata
✖ Template params adaptation using templateData - English to French
✖ Template params adaptation using templateData - English to Spanish
Add karma-mocha-reporter node module and make it the reporter.
Change-Id: Ic7d848b45e8e5ad3839d8a2bd822b63838319ad7
---
M Gruntfile.js
M package.json
2 files changed, 2 insertions(+), 1 deletion(-)
Approvals:
Krinkle: Looks good to me, but someone else must approve
KartikMistry: Looks good to me, but someone else must approve
Hashar: Looks good to me, approved
jenkins-bot: Verified
diff --git a/Gruntfile.js b/Gruntfile.js
index 1ecc2c0..6c56772 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -88,7 +88,7 @@
} ],
logLevel: 'DEBUG',
frameworks: [ 'qunit' ],
- reporters: [ 'progress' ],
+ reporters: [ 'mocha' ],
singleRun: true,
autoWatch: false,
// Some tests in extensions don't yield for
more than the default 10s (T89075)
diff --git a/package.json b/package.json
index 5a5635b..2c22395 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,7 @@
"karma": "1.1.0",
"karma-chrome-launcher": "2.0.0",
"karma-firefox-launcher": "1.0.0",
+ "karma-mocha-reporter": "2.2.3",
"karma-qunit": "1.0.0",
"qunitjs": "1.22.0",
"stylelint-config-wikimedia": "0.4.1",
--
To view, visit https://gerrit.wikimedia.org/r/341377
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic7d848b45e8e5ad3839d8a2bd822b63838319ad7
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: KartikMistry <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits