From 1ab729571dbad9de6909e9396508a67bcf08144e Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 5 Jun 2014 11:07:45 -0300 Subject: [PATCH 1/2] add introduction --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 3834db331..859410ba8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ [![Build Status](https://secure.travis-ci.org/bitpay/copay.png)](http://travis-ci.org/bitpay/copay) # Copay +Copay is a secure multisignature bitcoin wallet for friends and companies. + +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: From 37d778c1c36ebc12ce2c0af2719c6bf2915ca906 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 5 Jun 2014 13:30:01 -0300 Subject: [PATCH 2/2] add coverage reports --- .coveralls.yml | 1 + .gitignore | 3 +++ README.md | 4 +++- package.json | 37 +++++++++++++++++++++++-------------- test/test.API.js | 4 ++++ 5 files changed, 34 insertions(+), 15 deletions(-) create mode 100644 .coveralls.yml 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 859410ba8..dc7860d4b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ [![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 multisignature bitcoin wallet for friends and companies. +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. 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() {