Skip to content

Commit

Permalink
adding test coverage and badges to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
richardgirges committed Feb 18, 2017
1 parent ec57037 commit de69689
Show file tree
Hide file tree
Showing 5 changed files with 483 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ node_modules
*.log
*.gz

coverage
test/uploads
test/manual/uploads/*
!test/manual/uploads/placeholder.txt
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
sudo: false
language: node_js
node_js:
- "4"
- "5"
- "6"
- "7"
script:
- npm test
- npm run lint
- npm test
- npm run coverage
after_success: 'npm run coveralls'
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Description
# express-fileupload
Simple express middleware for uploading files.

[![npm Package](https://img.shields.io/npm/v/express-fileupload.svg?style=flat-square)](https://www.npmjs.org/package/express-fileupload)
[![Build Status](https://travis-ci.org/richardgirges/express-fileupload.svg?branch=master)](https://travis-ci.org/richardgirges/express-fileupload)
[![downloads per month](http://img.shields.io/npm/dm/express-fileupload.svg)](https://www.npmjs.org/package/express-fileupload)
[![Coverage Status](https://img.shields.io/coveralls/richardgirges/express-fileupload.svg)](https://coveralls.io/r/richardgirges/express-fileupload)

# Version 0.1.0 Breaking Changes

Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"description": "Simple express file upload middleware that wraps around Busboy",
"main": "./lib/index",
"scripts": {
"test": "mocha \"test/**/*.spec.js\"",
"lint": "eslint ./"
"test": "istanbul cover _mocha -- -R spec",
"lint": "eslint ./",
"coveralls": "COVERALLS_REPO_TOKEN=vNV8IQ0jJAuWGikebCeIHJryRulP6aEHa cat ./coverage/lcov.info | coveralls"
},
"dependencies": {
"busboy": "^0.2.14",
Expand All @@ -30,9 +31,11 @@
"repository": "richardgirges/express-fileupload",
"devDependencies": {
"body-parser": "^1.16.1",
"coveralls": "^2.11.16",
"eslint": "^3.15.0",
"eslint-config-google": "^0.7.1",
"express": "^4.13.4",
"istanbul": "^0.4.5",
"mocha": "^3.2.0",
"supertest": "^3.0.0"
}
Expand Down
Loading

0 comments on commit de69689

Please sign in to comment.