Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test coverage #42

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Credentials
.coveralls.yml

# Dependencies
/node_modules/
/web_demo/node_modules/
Expand All @@ -11,6 +14,7 @@ npm-debug.log
*.log

# Misc
coverage/
results
lib-cov
*.seed
Expand Down
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
language: node_js
before_install:
npm -g install npm@latest
- npm -g install npm@latest
node_js:
- 8
- 6
- 4
- 0.12
- 0.11
script:
- npm run coveralls
sudo: false
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ figo Node.js SDK
[![npm version](http://img.shields.io/npm/v/figo.svg)](https://www.npmjs.org/package/figo)
[![Build Status](https://secure.travis-ci.org/figo-connect/node-figo.svg)](https://travis-ci.org/figo-connect/node-figo)
[![dependencies Status](https://david-dm.org/figo-connect/node-figo/status.svg)](https://david-dm.org/figo-connect/node-figo)
[![Coverage Status](https://coveralls.io/repos/github/figo-connect/node-figo/badge.svg)](https://coveralls.io/github/figo-connect/node-figo)

figo Node.js SDK is a package that contains a set of wrappers for figo Connect API and enables you to start creating applications in a Node.js environment immediately.

Expand Down
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,23 @@
"license": "MIT",
"main": "./lib/figo.js",
"scripts": {
"test": "mocha --timeout 60000 test/*"
"test": "mocha --timeout 60000 test/*",
"coveralls": "NODE_ENV=test ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- --timeout 60000 --reporter spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js --verbose || true"
},
"repository": {
"type": "git",
"url": "https://github.com/figo-connect/node-figo.git"
},
"devDependencies": {
"async": "^2.0.1",
"chai": "",
"mocha": ""
"chai": "^4.1.1",
"coveralls": "^2.13.1",
"istanbul": "^0.4.5",
"mocha": "^3.5.0",
"mocha-lcov-reporter": "^1.3.0"
},
"engines": {
"node": ">=0.11.0"
"node": ">=4.8.4"
},
"dependencies": {
"clone": "^1.0.2",
Expand Down