-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgruntfile.js
55 lines (51 loc) · 1.32 KB
/
gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
'use strict';
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks("grunt-jscoverage");
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-jshint');
var src = ['test/core/domainDaoSupport.js', 'test/connection/cache/*.js',
'test/connection/sql/*.js', 'test/template/cache/*.js', 'test/util/*.js',
'test/bearcat-dao.js', 'test/loader/*.js', 'test/aspect/*.js'
];
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
jscoverage: {
options: {
inputDirectory: 'lib',
outputDirectory: 'lib-cov'
}
},
mochaTest: {
dot: {
options: {
reporter: 'dot',
timeout: 100000,
require: 'coverage/blanket'
},
src: src
},
coverage: {
options: {
reporter: 'html-cov',
quiet: true,
captureFile: 'coverage.html'
},
src: src
}
},
clean: {
"coverage.html": {
src: ['coverage.html']
}
},
jshint: {
all: ['lib/*']
}
});
// Default task.
// grunt.registerTask('default', ['clean', 'jscoverage', 'mochaTest:dot', 'jshint:all']);
grunt.registerTask('default', ['clean', 'jscoverage', 'mochaTest']);
};