File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,14 @@ module.exports = {
3636 'javascriptEnabled' : true ,
3737 'acceptSslCerts' : true
3838 }
39+ } ,
40+
41+ 'phantomjs' : {
42+ 'desiredCapabilities' : {
43+ 'browserName' : 'phantomjs' ,
44+ 'javascriptEnabled' : true ,
45+ 'acceptSslCerts' : true
46+ }
3947 }
4048 }
4149}
Original file line number Diff line number Diff line change 11var path = require ( 'path' )
2+ var spawn = require ( 'cross-spawn' )
23var httpServer = require ( 'http-server' )
34var server = httpServer . createServer ( {
45 root : path . resolve ( __dirname , '../../' )
56} )
67
78server . listen ( 8080 )
89
9- var spawn = require ( 'cross-spawn' )
10- var args = [
11- '--config' , 'build/nightwatch.config.js' ,
12- '--env' , 'chrome,firefox'
13- ]
14-
15- if ( process . argv [ 2 ] ) {
16- args . push ( '--test' , 'test/e2e/specs/' + process . argv [ 2 ] )
10+ var args = process . argv . slice ( 2 )
11+ if ( args . indexOf ( '--config' ) === - 1 ) {
12+ args = args . concat ( [ '--config' , 'build/nightwatch.config.js' ] )
13+ }
14+ if ( args . indexOf ( '--env' ) === - 1 ) {
15+ args = args . concat ( [ '--env' , 'chrome,firefox' ] )
16+ }
17+ var i = args . indexOf ( '--test' )
18+ if ( i > - 1 ) {
19+ args [ i + 1 ] = 'test/e2e/specs/' + args [ i + 1 ]
1720}
1821
1922var runner = spawn ( './node_modules/.bin/nightwatch' , args , {
You can’t perform that action at this time.
0 commit comments