diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 000000000..e0de544ed --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +repo_token: LccCN5zLEHlHnI86wSoX97JAF4ZluucAh diff --git a/.gitignore b/.gitignore index a0d54ca79..27d05ec7c 100644 --- a/.gitignore +++ b/.gitignore @@ -50,3 +50,6 @@ version.js android/package android/*.apk + + +coverage/ diff --git a/README.md b/README.md index 3834db331..dc7860d4b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,12 @@ [![Build Status](https://secure.travis-ci.org/bitpay/copay.png)](http://travis-ci.org/bitpay/copay) +[![Coverage Status](https://img.shields.io/coveralls/bitpay/copay.svg)](https://coveralls.io/r/bitpay/copay) # Copay +Copay is a secure bitcoin wallet for friends and companies. +Easy-to-use multisignature bitcoin wallet, bringing corporate-level security to ordinary people. + +When friends or company executives join a Copay wallet, more than one person must sign every transaction. If your computer is compromised and your private keys are stolen, the bitcoins are still safe. This is in addition to state-of-the-art encrypted storage and communication. + ## Installation: diff --git a/package.json b/package.json index 6f26720e8..e08082c4d 100644 --- a/package.json +++ b/package.json @@ -20,30 +20,39 @@ "main": "app.js", "scripts": { "start": "node server.js", - "test": "mocha" + "test": "node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", + "coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter spec test" }, "homepage": "https://github.com/bitpay/copay", "devDependencies": { + "async": "~0.9.0", + "bitcore": "git://github.com/bitpay/bitcore.git", + "blanket": "^1.1.6", + "browser-pack": "~2.0.1", + "browserify": "~3.32.1", + "buffertools": "~2.0.1", + "chai": "~1.9.1", + "commander": "~2.1.0", + "coveralls": "^2.10.0", "express": "4.0.0", + "grunt-browserify": "~2.0.0", "grunt-contrib-watch": "~0.5.3", + "grunt-markdown": "~0.5.0", "grunt-mocha-test": "~0.8.2", "grunt-shell": "~0.6.4", - "grunt-browserify": "~2.0.0", - "grunt-markdown": "~0.5.0", + "istanbul": "^0.2.10", "karma": "~0.12.9", "karma-chrome-launcher": "~0.1.3", - "mocha": "~1.18.2", "karma-mocha": "~0.1.3", - "buffertools": "~2.0.1", - "browserify": "~3.32.1", - "browser-pack": "~2.0.1", - "commander": "~2.1.0", - "uglifyify": "~1.2.3", - "soop": "~0.1.5", - "bitcore": "git://github.com/bitpay/bitcore.git", - "chai": "~1.9.1", - "sinon": "~1.9.1", + "mocha": "~1.18.2", + "mocha-lcov-reporter": "0.0.1", "node-cryptojs-aes": "=0.4.0", - "async": "~0.9.0" + "sinon": "~1.9.1", + "soop": "~0.1.5", + "travis-cov": "^0.2.5", + "uglifyify": "~1.2.3" + }, + "dependencies": { + "mocha": "^1.18.2" } } diff --git a/test/test.API.js b/test/test.API.js index 8cbd450cf..14569a337 100644 --- a/test/test.API.js +++ b/test/test.API.js @@ -6,6 +6,10 @@ var copay = copay || require('../copay'); var API = API || copay.API; var Storage = Storage || require('../test/mocks/FakeStorage'); +var blanket = require("blanket")({ + "pattern": "/js/" +}); + describe('API', function() { it('should have a command called "echo"', function() {