Created
October 1, 2014 13:15
-
-
Save dsturley/e70392130d1086bd298b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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'] | |
} | |
} | |
} | |
}); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports = module.exports = function () { | |
return true; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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