Skip to content

Commit

Permalink
using more explicit ENV var for JSCov
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanDonovan committed Sep 7, 2012
1 parent 18c58d7 commit 936c869
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -8,7 +8,7 @@ test:
./node_modules/.bin/mocha

test-cov: lib-cov
JSCOV=1 ./node_modules/.bin/mocha --reporter html-cov > coverage.html && echo 'coverage saved to coverage.html'
EASY_MYSQL_JSCOV=1 ./node_modules/.bin/mocha --reporter html-cov > coverage.html && echo 'coverage saved to coverage.html'

lib-cov:
@rm -fr ./$@
Expand Down
2 changes: 1 addition & 1 deletion index.js
@@ -1,4 +1,4 @@
if (process.env.JSCOV) {
if (process.env.EASY_MYSQL_JSCOV) {
module.exports = require("./lib-cov/easy_mysql");
} else {
module.exports = require("./lib/easy_mysql");
Expand Down
1 change: 0 additions & 1 deletion lib/easy_pool.js
@@ -1,5 +1,4 @@
var pool_module = require('generic-pool');
var path = require('path');
var mysql = require('mysql');

/** @ignore */
Expand Down
2 changes: 1 addition & 1 deletion test/common.js
Expand Up @@ -3,7 +3,7 @@ var mysql = require('mysql');
var assert = require('assert');

var lib_dir = 'lib';
if (process.env.JSCOV) {
if (process.env.EASY_MYSQL_JSCOV) {
lib_dir = 'lib-cov';
}

Expand Down

0 comments on commit 936c869

Please sign in to comment.