Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Added new unittest-cov npm task which reports (via CLI) code covera…
Browse files Browse the repository at this point in the history
…ge using istanbul.

Auditors: @alexwykoff, @bbondy

Fixes #6473
  • Loading branch information
bsclifton committed Mar 10, 2017
1 parent 7e5af38 commit 49fee91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
"start": "node ./tools/start.js --user-data-dir=brave-development --debug=5858 --enable-logging --v=0 --enable-extension-activity-logging --enable-sandbox-logging --enable-dcheck",
"start2": "node ./tools/start.js --user-data-dir=brave-development-2 --debug=5859 --enable-logging --v=0 --enable-extension-activity-logging --enable-sandbox-logging --enable-dcheck",
"start-brk": "node ./tools/start.js --debug-brk=5858 -enable-logging --v=0 --enable-dcheck",
"test": "cross-env NODE_ENV=test mocha --require babel-register --require babel-polyfill --recursive \"test/**/*Test.js\"",
"unittest": "cross-env NODE_ENV=test mocha --require babel-register --require babel-polyfill --recursive \"test/unit/**/*Test.js\"",
"uitest": "cross-env NODE_ENV=test mocha --require babel-register --require babel-polyfill --recursive \"test/about/**/*Test.js\" \"test/app/**/*Test.js\" \"test/components/**/*Test.js\" \"test/lib/**/*Test.js\"",
"test": "cross-env NODE_ENV=test mocha \"test/**/*Test.js\"",
"unittest": "cross-env NODE_ENV=test mocha \"test/unit/**/*Test.js\"",
"unittest-cov": "node --harmony node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report html --report text -x \"test/unit/**/*Test.js\" -- \"test/unit/**/*Test.js\"",
"uitest": "cross-env NODE_ENV=test mocha \"test/about/**/*Test.js\" \"test/app/**/*Test.js\" \"test/components/**/*Test.js\" \"test/lib/**/*Test.js\"",
"update-pdfjs": "rm -r app/extensions/pdfjs/; cp -r ../pdf.js/build/chromium/ app/extensions/pdfjs/",
"update-psl": "./tools/updatepsl.sh",
"vagrant-destroy-linux": "VAGRANT_CWD=./test/vms/vagrant/ubuntu-14.04 vagrant destroy",
Expand Down Expand Up @@ -149,6 +150,7 @@
"git-rev-sync": "^1.8.0",
"gulp": "^3.9.0",
"joi": "^10.2.2",
"istanbul": "^1.1.0-alpha.1",
"jsdom": "9.4.1",
"jsdom-global": "2.0.0",
"jsdox": "^0.4.9",
Expand Down
3 changes: 3 additions & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
--timeout 600s
--reporter spec
--check-leaks
--require babel-register
--require babel-polyfill
--recursive

0 comments on commit 49fee91

Please sign in to comment.