-
Notifications
You must be signed in to change notification settings - Fork 12
/
Gruntfile.js
56 lines (43 loc) · 1.55 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
56
var webjclConfig = require('./config.js');
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
unit: {},
jasmine_node: {
all: {
specNameMatcher: "spec",
specFolders: ['./tests'],
requirejs: false,
forceExit: true
},
integration: {
apiEndpoint: "http://localhost:" + webjclConfig.httpPort,
auth: { user: "goodUser", pass: "goodPass" },
ftpHost: webjclConfig.ftpHost,
ftpPort: webjclConfig.ftpPort,
specNameMatcher: "spec",
specFolders: [
'./tests/v2/integration',
'./tests/v2/E2E'
],
requirejs: false,
forceExit: true
},
unit: {
specNameMatcher: "Spec",
specFolders: [
'./tests/v2/unit'
],
requirejs: false,
forceExit: true
},
}
});
grunt.loadNpmTasks('grunt-jasmine-node');
// Default task(s).
grunt.registerTask('test', ['jasmine_node:all']);
grunt.registerTask('test:integration', ['jasmine_node:integration']);
grunt.registerTask('test:unit', ['jasmine_node:unit']);
grunt.registerTask('default', ['test']);
};