test:
options:
script: '<%= pkg.sources %>js/tests/e2e/server.js'
+ port: '<%= grunt.option("port") %>'
dev:
options:
background: false
test: true
'no-colors': true
concise: true
+ port: '<%= grunt.option("port") %>'
src: ['<%= pkg.sources %>js/tests/e2e/tests/**/issues-spec.js']
single:
options:
var fs = require('fs');
+var getPort = function () {
+ return casper.cli.options.port;
+};
-var BASE_URL = 'http://localhost:3000/pages/',
+var BASE_URL = 'http://localhost:' + getPort() + '/pages/',
WINDOW_WIDTH = 1200,
WINDOW_HEIGHT = 800;