Zfilipin has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/385191 )

Change subject: WIP Mocha tests for Echo notifications
......................................................................

WIP Mocha tests for Echo notifications

Bug: T177412
Change-Id: I20685abf6eac9132df2c8033ee40f9f82c05051c
---
M Gruntfile.js
M package.json
2 files changed, 16 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/91/385191/1

diff --git a/Gruntfile.js b/Gruntfile.js
index dbbfcb81..34d31f8 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -13,6 +13,7 @@
        grunt.loadNpmTasks( 'grunt-eslint' );
        grunt.loadNpmTasks( 'grunt-jsonlint' );
        grunt.loadNpmTasks( 'grunt-karma' );
+       grunt.loadNpmTasks( 'grunt-simple-mocha' );
        grunt.loadNpmTasks( 'grunt-stylelint' );
        grunt.loadNpmTasks( 'grunt-webdriver' );
 
@@ -121,6 +122,18 @@
                        test: {
                                configFile: WebdriverIOconfigFile
                        }
+               },
+
+               simplemocha: {
+                       options: {
+                               timeout: 20000
+                       },
+                       all: {
+                               src: [
+                                       'tests/mocha/**/*.js',
+                                       './extensions/*/tests/mocha/**/*.js'
+                               ]
+                       }
                }
 
        } );
diff --git a/package.json b/package.json
index 96a425f..84fcef1 100644
--- a/package.json
+++ b/package.json
@@ -3,6 +3,7 @@
   "scripts": {
     "test": "grunt test",
     "doc": "jsduck",
+    "mocha": "grunt simplemocha",
     "postdoc": "grunt copy:jsduck",
     "selenium": "killall -0 chromedriver 2>/dev/null || chromedriver 
--url-base=/wd/hub --port=4444 & grunt webdriver:test; killall chromedriver"
   },
@@ -17,6 +18,7 @@
     "grunt-eslint": "20.0.0",
     "grunt-jsonlint": "1.1.0",
     "grunt-karma": "2.0.0",
+    "grunt-simple-mocha": "0.4.1",
     "grunt-stylelint": "0.8.0",
     "grunt-webdriver": "2.0.3",
     "karma": "1.5.0",
@@ -24,6 +26,7 @@
     "karma-firefox-launcher": "1.0.1",
     "karma-mocha-reporter": "2.2.3",
     "karma-qunit": "1.0.0",
+    "mocha": "4.0.1",
     "nodemw": "0.10.1",
     "qunitjs": "1.23.1",
     "stylelint": "7.8.0",

-- 
To view, visit https://gerrit.wikimedia.org/r/385191
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I20685abf6eac9132df2c8033ee40f9f82c05051c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Zfilipin <zfili...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to