0.0.2 • Published 10 years ago

generator-pageboy v0.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
10 years ago

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 pageboy

Route

Generates a new route.

Example:

yo pageboy:route myRoute
[?] What is the url of your route? www/app/myRoute
[?] What is the spec name? mySpec

Produces:

www/app/myRoute/myRoute.po.js
www/app/myRoute/myRoute.mySpec.spec.js

Spec

Generates a jasmine spec.

Example:

yo pageboy:spec mySpec
[?] Where would you like to create this spec? www/app

Produces:

www/app/app.mySpec.spec.js

PageObject

Generates a page object.

Example:

yo pageboy:po myPo
[?] Where would you like to create this pageobject? www/app

Produces:

www/app/myPo.po.js

License

MIT license

TODO

  • Initial Artifacts
  • Initial README
  • App Generator
  • Route Subgenerator
  • PO Subgenerator
  • Spec Subgenerator
  • Publish to npm