jenkins-bot has submitted this change and it was merged.

Change subject: Cover mocha tests as well
......................................................................


Cover mocha tests as well

Change-Id: I8c9b4cf1855d17eb81f052b85d23b9cf5b8df192
---
M .gitignore
M .jshintignore
M package.json
3 files changed, 5 insertions(+), 2 deletions(-)

Approvals:
  GWicke: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/.gitignore b/.gitignore
index 2ce0c22..b887eb7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,6 +17,7 @@
 doc
 tests/server/pages.db
 tests/client/config.js
+coverage/
 
 contrib/
 node_modules
diff --git a/.jshintignore b/.jshintignore
index 32372b8..ea50c69 100644
--- a/.jshintignore
+++ b/.jshintignore
@@ -5,3 +5,4 @@
 tests/server/node_modules
 tests/parserTests-blacklist.js
 lib/_http_agent.js
+coverage
diff --git a/package.json b/package.json
index 1b8f2dd..b21cf63 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,6 @@
                "mocha": "~1.21.4",
                "supertest": "0.14.0",
                "istanbul": "0.3.5",
-               "mocha-lcov-reporter": "0.0.1",
                "coveralls": "2.11.2"
        },
        "main": "lib/index.js",
@@ -40,7 +39,9 @@
                "mocha": "mocha --opts tests/mocha/mocha.opts tests/mocha",
                "parserTests": "node tests/parserTests.js --wt2html --wt2wt 
--html2wt --html2html --selser --no-color --quiet --blacklist",
                "test": "npm run parserTests && npm run mocha",
-               "coverage": "istanbul cover tests/parserTests.js -- --wt2html 
--wt2wt --html2wt --html2html --selser --no-color --quiet --blacklist && cat 
./coverage/lcov.info | coveralls && rm -rf ./coverage"
+               "cover-mocha": "istanbul cover _mocha --dir ./coverage/mocha -- 
 --opts tests/mocha/mocha.opts tests/mocha",
+               "cover-parserTests": "istanbul cover tests/parserTests.js --dir 
./coverage/parserTests -- --wt2html --wt2wt --html2wt --html2html --selser 
--no-color --quiet --blacklist",
+               "coverage": "npm run cover-mocha && npm run cover-parserTests 
&& istanbul report && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
        },
        "repository": {
                "type": "git",

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I8c9b4cf1855d17eb81f052b85d23b9cf5b8df192
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Arlolra <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to