-
Notifications
You must be signed in to change notification settings - Fork 6
/
Gruntfile.js
48 lines (38 loc) · 958 Bytes
/
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
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
all: [
'jasmine2-custom-message.js',
'Gruntfile.js',
'specs/**/*.js'
],
options: {
jshintrc: '.jshintrc'
}
},
jasmine_node: {
// options have no effect in `grunt-jasmine-node`#v0.1.0
test: {}
},
protractor: {
options: {
},
jasmine_custom_message: {
options: {
configFile: 'specs/protractor/conf.js',
args: {
verbose: true
}
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-jasmine-node');
grunt.loadNpmTasks('grunt-protractor-runner');
// `jasmine-node` does not yet support `jasmine`#v2.0.0
// To test `jsamine-custom-message` you can use a browser
grunt.registerTask('test', ['jshint','protractor']);
grunt.registerTask('default', ['test']);
};