summaryrefslogtreecommitdiffstats
path: root/js/Gruntfile.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-15 12:26:42 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-15 12:26:42 +0200
commitd6625bc44524500e11c9072c6ba294112cd52d43 (patch)
treecd1e93b6b21434d6aba7725821d811d312d687f7 /js/Gruntfile.js
parent866f17fe43f841691a8858d671962d623369d3b3 (diff)
fix protractor tests
Diffstat (limited to 'js/Gruntfile.js')
-rw-r--r--js/Gruntfile.js20
1 files changed, 18 insertions, 2 deletions
diff --git a/js/Gruntfile.js b/js/Gruntfile.js
index 55d607a83..953976dd0 100644
--- a/js/Gruntfile.js
+++ b/js/Gruntfile.js
@@ -19,6 +19,8 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-wrap');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-ngmin');
+ grunt.loadNpmTasks('grunt-protractor-runner');
+ grunt.loadNpmTasks('grunt-protractor-webdriver');
grunt.initConfig({
meta: {
@@ -79,7 +81,7 @@ module.exports = function(grunt) {
predef: [
'$', 'angular', 'app', 'OC',
'protractor', 'describe', 'beforeEach', 'module', 'it',
- 'browser', 'expect', 'By'
+ 'browser', 'expect', 'By', 'inject'
]
}
}
@@ -121,7 +123,8 @@ module.exports = function(grunt) {
karma: {
unit: {
configFile: 'config/karma.js',
- browsers: ['PhantomJS']
+ browsers: ['PhantomJS'],
+ autoWatch: true
},
continuous: {
configFile: 'config/karma.js',
@@ -145,6 +148,18 @@ module.exports = function(grunt) {
options: {
colors: true
}
+ },
+ protractor_webdriver: {
+ app: {
+
+ }
+ },
+ protractor: {
+ phantomjs: {
+ options: {
+ configFile: 'config/protractor.js'
+ }
+ }
}
});
@@ -152,5 +167,6 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['jshint', 'jslint', 'concat', 'ngmin', 'wrap']);
grunt.registerTask('test', ['karma:unit']);
grunt.registerTask('ci', ['default', 'karma:continuous']);
+ grunt.registerTask('e2e', ['protractor_webdriver', 'protractor']);
}; \ No newline at end of file