Swiip / generator-gulp-angular

Yeoman generator for AngularJS with GulpJS [UNMAINTAINED next iteration is FountainJS]
http://fountainjs.io
3.72k stars 664 forks source link

Tasks to load up connect not included #4

Closed aarondufall closed 10 years ago

aarondufall commented 10 years ago

Running the gulp protractor cmd fails due to the connect:src task not being implemented.

Error output

[gulp] Task 'connect:src' was not defined in your gulpfile but you tried to run it.

Also running gulp protractor-only throws an error with phantomJS

I tried changing the capabilities to

 capabilities: {
    'browserName': 'phantomjs',
    'phantomjs.binary.path': './node_modules/karma-phantomjs-launcher/node_modules/phantomjs/bin/phantomjs',
    'phantomjs.cli.args': ['--debug=true', '--webdriver', '--webdriver-logfile=webdriver.log', '--webdriver-loglevel=DEBUG']
  },

which get past the phantomJS error but then is throws a null error, thats as far as I got.

I pretty new to all these tool, so I many be missing something I'm supposed to be doing

Swiip commented 10 years ago

Sorry for the connect task, I forgot to update the e2e test tasks after switching from connect to browser sync. I'll fix this soon.

However, the protractor-only works for me. Can you give more details? OS, copy of the error...

aarondufall commented 10 years ago

I'm on OS X 10.9.3

I reverted the capabilities in the protractor.conf to the original one that where provided

This is the error that I'm getting

node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1702
      throw error;
            ^
UnknownError: The path to the driver executable must be set by the phantomjs.binary.path capability/system property/PATH variable; for more information, see https://github.com/ariya/phantomjs/wiki. The latest version can be downloaded from http://phantomjs.org/download.html

Note: I removed all my local directory structure for the error

Swiip commented 10 years ago

I didn't realize but protractor needs phantomjs to be installed globally. You can test quickly with npm install -g phantomjs.

The doc gives a way to use an embeded version of phantom, I'll use this for the next version... https://github.com/angular/protractor/blob/master/docs/browser-setup.md#phantomjs