var path = require('path');
var coffeeCoverage = require('coffee-coverage');
var projectRoot = path.normalize(__dirname);
var coverageVar = coffeeCoverage.findIstanbulVariable();
// Only write a coverage report if we're not running inside of Istanbul.
var writeOnExit = (coverageVar == null) ? (projectRoot + '/coverage/coverage-coffee.json') : null;

coffeeCoverage.register({
    instrumentor: 'istanbul',
    basePath: projectRoot,
    exclude: [
      '/test',
      '/node_modules',
      '/.git',
      '/gulpfile.coffee',
      '/' + path.normalize('src/client.coffee'),
      '/' + path.normalize('src/main.coffee')
    ],
    coverageVar: coverageVar,
    writeOnExit: writeOnExit,
    initAll: true
});

var path = require('path');
var coffeeCoverage = require('coffee-coverage');
var projectRoot = path.normalize(path.join(__dirname, '..'));
var coverageVar = coffeeCoverage.findIstanbulVariable();
// Only write a coverage report if we're not running inside of Istanbul.
var writeOnExit = (coverageVar == null) ? (projectRoot + '/coverage/coverage-coffee.json') : null;

coffeeCoverage.register({
    instrumentor: 'istanbul',
    basePath: projectRoot,
    exclude: [
      '/test',
      '/node_modules',
      '/.git',
      '/gulpfile.coffee',
      '/' + path.normalize('src/client.coffee'),
      '/' + path.normalize('src/main.coffee')
    ],
    coverageVar: coverageVar,
    writeOnExit: writeOnExit,
    initAll: true
});

Fix test coverage being horribly useless
Fix test coverage being horribly useless
