generator-fountain-webapp icon indicating copy to clipboard operation
generator-fountain-webapp copied to clipboard

Adding protractor to generated fountain-webapp

Open pablorsk opened this issue 8 years ago • 9 comments

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"
    }
  }
}

pablorsk avatar Aug 23 '16 00:08 pablorsk

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

wickY26 avatar Sep 20 '16 12:09 wickY26

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)

Swiip avatar Sep 22 '16 05:09 Swiip

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

pablorsk avatar Sep 22 '16 12:09 pablorsk

@pablorsk I really want to see your example.

wickY26 avatar Sep 22 '16 12:09 wickY26

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

pablorsk avatar Sep 22 '16 14:09 pablorsk

@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.

pablorsk avatar Sep 22 '16 15:09 pablorsk

Thanks, that's great

Swiip avatar Sep 24 '16 11:09 Swiip

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

wickY26 avatar Sep 30 '16 13:09 wickY26

@wickY26 that would be very good.

pablorsk avatar Sep 30 '16 18:09 pablorsk