Comparing version 0.2.3 to 0.2.4
@@ -6,2 +6,8 @@ Changelog | ||
<tr> | ||
<td>v0.2.4</td><td><ul> | ||
<li>Fix line-split algo to handle Mac lin separators, thanks to @asifrc</li> | ||
<li>Update README for quick intro to ignoring code for coverage, thanks to @gergelyke</li> | ||
</ul></td> | ||
</tr> | ||
<tr> | ||
<td>v0.2.3</td><td><ul> | ||
@@ -8,0 +14,0 @@ <li>Add YAML config file. `istanbul help config` has more details</li> |
@@ -0,1 +1,5 @@ | ||
/* | ||
Copyright (c) 2013, Yahoo! Inc. All rights reserved. | ||
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. | ||
*/ | ||
var path = require('path'), | ||
@@ -2,0 +6,0 @@ fs = require('fs'), |
@@ -593,3 +593,3 @@ /* | ||
if (this.opts.embedSource) { | ||
this.coverState.code = sourceCode.split(/\r?\n/); | ||
this.coverState.code = sourceCode.split(/(?:\r?\n)|\r/); | ||
} | ||
@@ -596,0 +596,0 @@ coverState = this.opts.debug ? JSON.stringify(this.coverState, undefined, 4) : JSON.stringify(this.coverState); |
@@ -0,1 +1,5 @@ | ||
/* | ||
Copyright (c) 2013, Yahoo! Inc. All rights reserved. | ||
Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. | ||
*/ | ||
module.exports = { | ||
@@ -2,0 +6,0 @@ watermarks: function () { |
@@ -379,3 +379,3 @@ /* | ||
fileCoverage.code.join('\n') + '\n' : sourceStore.get(fileCoverage.path), | ||
code = sourceText.split(/\r?\n/), | ||
code = sourceText.split(/(?:\r?\n)|\r/), | ||
count = 0, | ||
@@ -382,0 +382,0 @@ structured = code.map(function (str) { count += 1; return { line: count, covered: null, text: new InsertionText(str, true) }; }), |
{ | ||
"name": "istanbul", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale", | ||
@@ -24,3 +24,5 @@ "keywords": [ "coverage", "code coverage", "JS code coverage", "JS coverage" ], | ||
"Sergey Belov <peimei@ya.ru>", | ||
"porneL <pornel@pornel.net>" | ||
"porneL <pornel@pornel.net>", | ||
"@asifrc", | ||
"Gergely Nemeth @gergelyke" | ||
], | ||
@@ -30,3 +32,3 @@ "preferGlobal": true, | ||
"pretest": "jshint --config ./node_modules/yui-lint/jshint.json lib/*js lib/command/*js lib/report/*js lib/store/*js lib/util/*js test/*js test/instrumentation/*js test/cli/*js test/other/*js", | ||
"test": "test/create-escodegen-browser.js && test/run.js", | ||
"test": "test/create-escodegen-browser.js && npm_config_coverage=1 test/run.js", | ||
"posttest": "node ./lib/cli.js check-coverage --statements 95 --branches 80", | ||
@@ -45,3 +47,3 @@ "docs": "npm install yuidocjs && node node_modules/yuidocjs/lib/cli.js ." | ||
"escodegen": "1.0.x", | ||
"handlebars": "1.2.x", | ||
"handlebars": "1.3.x", | ||
"mkdirp": "0.3.x", | ||
@@ -48,0 +50,0 @@ "nopt": "2.1.x", |
@@ -57,2 +57,10 @@ Istanbul - a JS code coverage tool written in JS | ||
Ignoring code for coverage | ||
-------------------------- | ||
* Skip an `if` or `else` path with `/* istanbul ignore if */` or `/* istanbul ignore else */` respectively. | ||
* For all other cases, skip the next 'thing' in the source with: `/* istanbul ignore next */` | ||
See [ignoring-code-for-coverage.md](ignoring-code-for-coverage.md) for the spec. | ||
The command line | ||
@@ -180,2 +188,3 @@ ---------------- | ||
* handlebars: https://github.com/wycats/handlebars.js/ - for report template expansion | ||
* js-yaml: https://github.com/nodeca/js-yaml - for YAML config file load | ||
* mkdirp: https://github.com/substack/node-mkdirp - to create output directories | ||
@@ -182,0 +191,0 @@ * nodeunit: https://github.com/caolan/nodeunit - dev dependency for unit tests |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
248407
4964
215
+ Addedhandlebars@1.3.0(transitive)
- Removedhandlebars@1.2.1(transitive)
Updatedhandlebars@1.3.x