forked from michaldudak/fp-angular-js-training
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
47 lines (46 loc) · 843 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
module.exports = function (grunt) {
grunt.initConfig({
karma: {
options: {
// config file for both tasks
configFile: "config/unit.conf.js"
},
dev: {
options: {
// overriding global config
singleRun: true
}
},
watch: {
options: {
// overriding global config
autoWatch: true
}
},
ci: {
options: {
singleRun: true,
reporters: ["junit"],
junitReporter: {
outputFile: "test/results/test-results-unit.xml"
}
}
}
},
protractor: {
dev: {
options: {
configFile: "config/e2e.conf.js"
},
},
ci: {
options: {
configFile: "config/e2e-ci.conf.js"
},
}
}
});
grunt.loadNpmTasks("grunt-karma");
grunt.loadNpmTasks("grunt-protractor-runner");
grunt.registerTask("test", ["karma:dev", "protractor:dev"]);
};