b3c7ecbe2f
qunit tests in firefox and chrome. Maintaining code to work in node for testing only will be error-prone.
24 lines
440 B
JavaScript
24 lines
440 B
JavaScript
module.exports = function(grunt) {
|
|
|
|
grunt.initConfig({
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
|
|
karma: {
|
|
unit: {
|
|
configFile: 'karma.conf.js'
|
|
}
|
|
},
|
|
coveralls: {
|
|
options: {
|
|
coverageDir: 'tests/coverage/',
|
|
force: true
|
|
}
|
|
}
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-karma');
|
|
grunt.loadNpmTasks('grunt-karma-coveralls');
|
|
|
|
grunt.registerTask('test', ['karma', 'coveralls']);
|
|
|
|
};
|