forked from bearcatjs/bearcat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
44 lines (39 loc) · 1.09 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
'use strict';
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-contrib-clean');
var src = ['test/bearcat.js', 'test/beans/support/*.js', 'test/context/applicationContext.js', 'test/util/*.js',
'test/resource/*.js', 'test/aop/aop.js', 'test/aop/aop_annotation.js', 'test/aop/advisor.js', 'test/aop/aspect.js',
'test/aop/framework/*.js', 'test/aop/pointcut.js', 'test/aop/targetSource.js', 'test/beans/*.js'
];
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
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']
}
}
});
// Default task.
grunt.registerTask('default', ['clean', 'mochaTest']);
};