Skip to content

Commit

Permalink
adds coverage reporting with nyc and coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Coe committed May 29, 2015
1 parent 1a8dfc4 commit ba67771
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 22 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.swp
node_modules
npm-debug.log
.nyc_output
coverage
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ node_js:
- "0.10"
- "0.12"
- iojs

after_success: npm run coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ Running tests, development
==========================

[![Build Status](https://secure.travis-ci.org/Leonidas-from-XIV/node-xml2js.png?branch=master)](https://travis-ci.org/Leonidas-from-XIV/node-xml2js)
[![Coverage Status](https://coveralls.io/repos/Leonidas-from-XIV/node-xml2js/badge.svg?branch=)](https://coveralls.io/r/Leonidas-from-XIV/node-xml2js?branch=master)
[![Dependency Status](https://david-dm.org/Leonidas-from-XIV/node-xml2js.png)](https://david-dm.org/Leonidas-from-XIV/node-xml2js)

The development requirements are handled by npm, you just need to install them.
Expand Down
51 changes: 29 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name" : "xml2js",
"description" : "Simple XML to JavaScript object converter.",
"keywords" : ["xml", "json"],
"homepage" : "https://github.com/Leonidas-from-XIV/node-xml2js",
"version" : "0.4.8",
"author" : "Marek Kubica <[email protected]> (http://xivilization.net)",
"contributors" : [
"name": "xml2js",
"description": "Simple XML to JavaScript object converter.",
"keywords": [
"xml",
"json"
],
"homepage": "https://github.com/Leonidas-from-XIV/node-xml2js",
"version": "0.4.8",
"author": "Marek Kubica <[email protected]> (http://xivilization.net)",
"contributors": [
"maqr <[email protected]> (https://github.com/maqr)",
"Ben Weaver (http://benweaver.com/)",
"Jae Kwon (https://github.com/jaekwon)",
Expand Down Expand Up @@ -41,26 +44,30 @@
"Ryan Gahl (https://github.com/ryedin)",
"Eric Laberge <[email protected]> (https://github.com/elaberge)"
],
"main" : "./lib/xml2js",
"directories" : {
"main": "./lib/xml2js",
"directories": {
"lib": "./lib"
},
"scripts" : {
"test": "zap"
"scripts": {
"test": "zap",
"coverage": "nyc npm test && nyc report",
"coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
},
"repository" : {
"type" : "git",
"url" : "https://github.com/Leonidas-from-XIV/node-xml2js.git"
"repository": {
"type": "git",
"url": "https://github.com/Leonidas-from-XIV/node-xml2js.git"
},
"dependencies" : {
"sax" : "0.6.x",
"xmlbuilder" : ">=2.4.6"
"dependencies": {
"sax": "0.6.x",
"xmlbuilder": ">=2.4.6"
},
"devDependencies" : {
"coffee-script" : ">=1.9.0",
"zap" : ">=0.2.6",
"docco" : ">=0.6.2",
"diff" : ">=1.0.8"
"devDependencies": {
"coffee-script": ">=1.9.0",
"coveralls": "^2.11.2",
"diff": ">=1.0.8",
"docco": ">=0.6.2",
"nyc": "^2.2.1",
"zap": ">=0.2.6"
},
"license": "MIT"
}

0 comments on commit ba67771

Please sign in to comment.