Skip to content

Instantly share code, notes, and snippets.

@dsturley
Created October 1, 2014 13:15
Show Gist options
  • Save dsturley/e70392130d1086bd298b to your computer and use it in GitHub Desktop.
Save dsturley/e70392130d1086bd298b to your computer and use it in GitHub Desktop.
/*jshint node: true, camelcase: false */
module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-mocha-cov');
grunt.initConfig({
mochacov: {
test: {
options: {
reporter: 'xunit',
output: 'xunit.xml',
instrument: true
},
files: {
src: ['test.js']
}
}
}
});
};
exports = module.exports = function () {
return true;
};
{
"name": "test",
"version": "0.0.0",
"config": {
"blanket": {
"spec-cov": {
"threshold": 90,
"localThreshold": 90
},
"pattern": [
"routes",
"models"
],
"data-cover-never": "test"
}
},
"license": "MIT",
"dependencies": {
"grunt": "~0.4.5",
"grunt-mocha-cov": "~0.3.0",
"chai": "~1.9.2"
}
}
var assert = require('chai').assert;
describe('something', function () {
var index = require('./index');
it('should still generate XML', function () {
assert.isFalse(index());
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment