-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGruntFile.js
More file actions
35 lines (32 loc) · 1.04 KB
/
GruntFile.js
File metadata and controls
35 lines (32 loc) · 1.04 KB
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
module.exports = function (grunt) {
grunt.initConfig({
protractor: {
options: {
configFile: "tests/protractor-conf.js", // Default config file
keepAlive: false, // If false, the grunt process stops when the test fails.
noColor: false // If true, protractor will not use colors in its output.
},
chrome: {
options: {
args: {
browser: "chrome"
}
}
}
},
protractor_webdriver: {
local: {
options: {
keepAlive: true,
// XXX: need to include node for windows
command: 'node node_modules/protractor/bin/webdriver-manager start'
}
}
}
});
grunt.loadNpmTasks('grunt-bower-task');
grunt.loadNpmTasks('grunt-protractor-runner');
grunt.loadNpmTasks('grunt-protractor-webdriver');
grunt.registerTask("test", ["protractor_webdriver", "protractor:chrome"]);
grunt.registerTask("default", ["test"]);
};