FountainJS / generator-fountain-webapp

Yeoman 'fountain' generator to start a webapp
http://fountainjs.io
MIT License
963 stars 67 forks source link

Adding protractor to generated fountain-webapp #117

Open pablorsk opened 8 years ago

pablorsk commented 8 years ago

Hi! I like add protractor to my generated webapp like a generator-gulp-angular app. Any ideas for a implemmentation in the future? Or a idea where is the better place to start with e2e testing with protractor?

.yo-rc.json:

{
  "generator-fountain-angular1": {
    "version": "0.6.0",
    "props": {
      "framework": "angular1",
      "modules": "webpack",
      "js": "typescript",
      "css": "scss",
      "resolved": "/usr/lib/node_modules/generator-fountain-webapp/node_modules/generator-fountain-angular1/generators/app/index.js",
      "namespace": "fountain-angular1",
      "argv": {
        "remain": [],
        "cooked": [],
        "original": []
      },
      "skip-cache": false,
      "skip-install": false,
      "sample": "todoMVC",
      "router": "uirouter"
    }
  }
}
wickY26 commented 8 years ago

any improvement on this? should we wait for your new version to see e2e for angularjs version?

Swiip commented 8 years ago

Would be great but not planned on a short future. Protractor is a bit more complicated than for gulp-angular as we have to find e2e environment for each fmk : ng1, ng2 (protractor for both ok) and React (not protractor)

pablorsk commented 8 years ago

@wickY26 I can do this! If you like, I can make an example.

wickY26 commented 8 years ago

@pablorsk I really want to see your example.

pablorsk commented 8 years ago

Wait, I'm making a small example...

pablorsk commented 8 years ago

@wickY26 the example is ready!

Protractor with angularjs webapp generated with generator-fountain-webapp: https://github.com/pablorsk/fountain-angular-protractor

You can clone project or just check the simple modificactions.

Swiip commented 8 years ago

Thanks, that's great

wickY26 commented 8 years ago

@pablorsk Thank you for your post man. I update it with little changes I will do PR to your project at this weekend hopefully...

pablorsk commented 8 years ago

@wickY26 that would be very good.