Skip to content

Instantly share code, notes, and snippets.

@fdubost
Created May 27, 2014 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fdubost/fe0466a3376ecfee58ca to your computer and use it in GitHub Desktop.
Save fdubost/fe0466a3376ecfee58ca to your computer and use it in GitHub Desktop.
Protractor Gruntfile.js
grunt.initConfig({
connect: {
test: {
options: {
port: 9001,
hostname: 'localhost',
base: [
'.tmp',
'test',
'<%= yeoman.app %>'
]
}
}
},
protractor: {
e2e: {
options: {
configFile: "protractor-e2e.conf.js",
args: {seleniumAddress: 'http://localhost:4444'}
}
}
},
run: {
chromedriver: {
options: {
wait: false,
quiet: true,
ready: true
},
cmd: require('chromedriver').path,
args: [
'--port=4444',
'--no-sandbox'
]
}
}
});
grunt.registerTask('test-e2e', [
'connect:test',
'run:chromedriver',
'protractor:e2e',
'stop:chromedriver'
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment