0.0.2 • Published 10 years ago
generator-pageboy v0.0.2
PageBoy Generator
Yeoman generator for creating end to end tests, using Protractor and Jasmine.
Prerequisites
Download and Install Node and Yeoman
Usage
- Install Generator:
npm install -g generator-pageboy - Create and Go to Project Directory:
mkdir my-new-e2e-project && cd $_ - Run Generator:
yo pageboy - Start Sample App:
npm start - Run Test:
npm test
Generators
Available generators:
App
Sets up a new Protractor + Jasmine e2e app, generating all the boilerplate you need to get started.
Example:
yo pageboyRoute
Generates a new route.
Example:
yo pageboy:route myRoute
[?] What is the url of your route? www/app/myRoute
[?] What is the spec name? mySpecProduces:
www/app/myRoute/myRoute.po.js
www/app/myRoute/myRoute.mySpec.spec.jsSpec
Generates a jasmine spec.
Example:
yo pageboy:spec mySpec
[?] Where would you like to create this spec? www/appProduces:
www/app/app.mySpec.spec.jsPageObject
Generates a page object.
Example:
yo pageboy:po myPo
[?] Where would you like to create this pageobject? www/appProduces:
www/app/myPo.po.jsLicense
TODO
Initial ArtifactsInitial READMEApp GeneratorRoute SubgeneratorPO SubgeneratorSpec SubgeneratorPublish to npm