humin11 / clicker

Ionic 2 Demo / Seed Project : Angular2 + Typescript + Karma + Protractor + Travis

Home Page:http://lathonez.com/2016/ionic-2-unit-testing/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ionic 2 Demo / Seed Project : Karma + Protractor + Travis

Build Status Build status codecov.io MIT license Dependency Status devDependency Status

Install & Start

You need to be running the latest node LTS or newer

git clone https://github.com/lathonez/clicker.git
cd clicker
npm install       # or `npm run reinstall` if you get an error
npm start         # start the application (ionic serve)

Running as root? You probably shouldn't be. If you need to: npm run postinstall before npm start. #111 for more info.

Build for a specific environment (#135)

ENV=qa ionic build android    # uses ./config.xml and ./config/config.ts from ./config/qa

Run Unit Tests

npm test          # run unit tests

Run E2E

# e2e (aka. end-to-end, integration) - In two different shell windows
# Make sure you don't have a global instance of Protractor

npm start
npm run e2e

Blog Topics

Contribute

PRs are welcome, see the roadmap sticky

Help

  • If you can't get the testing working, raise an issue
  • If you have a general question about unit testing (e.g. how can I write a unit test for some-module), see #191

Acks

  • This started out as a fork of Angular 2 Seed and would not be possible without it
  • @bengro for the lightweightify inspiration (#68)
  • @ric9176 and @DanielaGSB for E2E tests (#50)
  • @tja4472 for the ngrx implementation (#133)
  • Everyone else for the advice, help, PRs etc

Changelog

See the changelog here

Dependencies

  • @Angular: 2.2.1
  • angular-cli: 1.0.0-beta.24
  • Ionic: 2.0.0-rc.4

About

Ionic 2 Demo / Seed Project : Angular2 + Typescript + Karma + Protractor + Travis

http://lathonez.com/2016/ionic-2-unit-testing/

License:MIT License


Languages

Language:TypeScript 67.1%Language:JavaScript 19.7%Language:HTML 6.6%Language:CSS 5.9%Language:Shell 0.8%