diff --git a/.gitignore b/.gitignore index 8c0facac8..8b9b39975 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules npm-debug.log +coverage .idea *.iml diff --git a/.travis.yml b/.travis.yml index 42863e8b2..f0472f7e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,3 +10,6 @@ node_js: - iojs before_install: - npm install -g npm@~1.4.6 +script: + - npm run cover + - npm run coveralls diff --git a/Readme.md b/Readme.md index 6c8bfc8f5..37ac8501e 100644 --- a/Readme.md +++ b/Readme.md @@ -1,4 +1,4 @@ -# Soap [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Gitter chat][gitter-image]][gitter-url] +# Soap [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url] > A SOAP client and server for node.js. @@ -502,7 +502,7 @@ namespace prefix is used to identify this Element. This is not much of a problem } ``` This would override the default `ignoredNamespaces` of the `WSDL` processor to `['namespaceToIgnore', 'someOtherNamespace']`. (This shouldn't be necessary, anyways). - + ## Handling "ignoreBaseNameSpaces" attribute If an Element in a `schema` definition depends has a basenamespace defined but the request does not need that value, for example you have a "sentJob" with basenamespace "v20" but the request need only: set in the tree structure, you need to set the ignoreBaseNameSpaces to true. This is set because in a lot of workaround the wsdl structure is not correctly @@ -567,12 +567,12 @@ describe('myService', function() { }); }); ``` - - + + ## Contributors * Author: [Vinay Pulim](https://github.com/vpulim) - * Maintainers: + * Maintainers: - [Joe Spencer](https://github.com/jsdevel) - [Heinz Romirer](https://github.com/herom) * [All Contributors](https://github.com/vpulim/node-soap/graphs/contributors) @@ -586,3 +586,6 @@ describe('myService', function() { [gitter-url]: https://gitter.im/vpulim/node-soap [gitter-image]: https://badges.gitter.im/vpulim/node-soap.png + +[coveralls-url]: https://coveralls.io/r/vpulim/node-soap +[coveralls-image]: http://img.shields.io/coveralls/vpulim/node-soap/master.svg diff --git a/package.json b/package.json index 8e7a992da..4db57a4e1 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,8 @@ }, "scripts": { "pretest": "jshint index.js lib test", + "cover": "istanbul cover _mocha -- --timeout 10000 test/*-test.js test/security/*.js", + "coveralls": "cat ./coverage/lcov.info | coveralls -v", "test": "mocha --timeout 10000 test/*-test.js test/security/*.js" }, "keywords": [ @@ -31,13 +33,15 @@ ], "license": "MIT", "devDependencies": { - "mocha": "~1.17.0", - "jshint": "2.3.0", - "glob": "~3.2.8", - "should": "~3.3.0", - "timekeeper": "~0.0.4", + "coveralls": "^2.11.6", "duplexer": "~0.1.1", + "glob": "~3.2.8", + "istanbul": "^0.4.1", + "jshint": "2.3.0", + "mocha": "~1.17.0", "readable-stream": "~2.0.2", - "semver": "~5.0.3" + "semver": "~5.0.3", + "should": "~3.3.0", + "timekeeper": "~0.0.4" } }