Socket
Socket
Sign inDemoInstall

coffee-coverage

Package Overview
Dependencies
5
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.5.1

lib/CompiledCache.js

13

docs/HOWTO-codeship-and-coveralls.md

@@ -15,5 +15,3 @@ Codeship and Coveralls

npm install --save-dev coffee-coverage
npm install --save-dev istanbul
npm install --save-dev coveralls
npm install --save-dev coffee-coverage istanbul coveralls

@@ -29,5 +27,9 @@ Save your mocha options in `./test/mocha.opts`:

"scripts": {
"test": "mocha"
"test": "mocha && istanbul report text-summary lcov"
}
Add this line to your .gitignore:
/coverage
In Codeship, in your project settings, in the "Test" tab, set your "Test Pipeline" to:

@@ -39,6 +41,5 @@

# Run CI tests and coverage
npm run test
npm test
# Upload results to coveralls.io
istanbul report lcovonly
export COVERALLS_SERVICE_NAME=codeship

@@ -45,0 +46,0 @@ export COVERALLS_SERVICE_JOB_ID=${CI_BUILD_NUMBER}

@@ -18,4 +18,3 @@ Running with [Istanbul](https://github.com/gotwarlost/istanbul)

npm install --save-dev coffee-coverage
npm install --save-dev istanbul
npm install --save-dev coffee-coverage istanbul
mocha --recursive \

@@ -22,0 +21,0 @@ --compilers coffee:coffee-script/register \

@@ -15,5 +15,3 @@ Travis-CI and Coveralls

npm install --save-dev coffee-coverage
npm install --save-dev istanbul
npm install --save-dev coveralls
npm install --save-dev coffee-coverage istanbul coveralls

@@ -29,3 +27,3 @@ Save your mocha options in `./test/mocha.opts`:

"scripts": {
"test": "mocha"
"test": "mocha && istanbul report text-summary lcov"
}

@@ -41,7 +39,10 @@

after_success:
- 'istanbul report lcovonly'
- 'cat ./coverage/lcov.info | ./node_modules/.bin/coveralls'
Add this line to your .gitignore:
/coverage
Push all these changes to github, and Travis-CI should generate a coverage report and send it to
coveralls. If you'd like to see an example of an application that is set up this way, check out
[jwalton/lol-js](https://github.com/jwalton/lol-js).

@@ -184,12 +184,10 @@ // Generated by CoffeeScript 1.9.2

}
if (!node.isStatement) {
body = node.child('body');
elseBody = node.child('elseBody');
if (!body || body.node.expressions.length === 0) {
node.insertAtStart('body', "undefined");
}
if (!elseBody || elseBody.node.expressions.length === 0) {
node.insertAtStart('elseBody', "undefined");
}
body = node.child('body');
elseBody = node.child('elseBody');
if (!body || body.node.expressions.length === 0) {
node.insertAtStart('body', "undefined");
}
if (!elseBody || elseBody.node.expressions.length === 0) {
node.insertAtStart('elseBody', "undefined");
}
node.insertAtStart('body', this._prefix + ".b[" + branchId + "][0]++");

@@ -196,0 +194,0 @@ node.insertAtStart('elseBody', this._prefix + ".b[" + branchId + "][1]++");

@@ -54,3 +54,2 @@ // Generated by CoffeeScript 1.9.2

}
console.log("Found pragma");
ifNode = self._getNext(node, match, 'If');

@@ -57,0 +56,0 @@ ifNode.mark('skipIf', true);

@@ -15,3 +15,3 @@ {

],
"version": "0.5.0",
"version": "0.5.1",
"author": "Benbria (http://www.benbria.com/)",

@@ -18,0 +18,0 @@ "contributors": [

@@ -48,2 +48,3 @@ Istanbul and JSCoverage-style instrumentation for CoffeeScript files.

* [Codeship and Coveralls](./docs/HOWTO-codeship-and-coveralls.md)
* [Travis-CI and Coveralls](./docs/HOWTO-travisci-and-coveralls.md)
* [Ignoring code with Pragmas](./docs/pragmas.md)

@@ -50,0 +51,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc