Ionic 2 Demo / Seed Project : Karma + Protractor + Travis ## Install & Start
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.
Run Unit Tests
npm test # run unit tests
Debug Unit tests
npm run karma # start karma in debug mode: multi run Chrome, hit `debug` to get going.
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
- Unit testing walkthrough
- E2E testing walkthrough
- Removing assets from the APK
- Unifying DI Boilerplate
Contribute
Issues and PRs are welcome, see the roadmap sticky
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)
- Everyone else for the advice, help, PRs etc
Changelog
See the changelog here
Dependencies
- @Angular: 2.0.0-rc.4
- Ionic: 2.0.0-beta.11
External dependencies are listed here to justify their inclusion and to allow for their removal if your project isn't using the related functionality.
- browserify: peer dependency of karma-browserify
- browserify-istanbul: coverage transformer for karma-browserify
- codecov.io: sending unit test coverage reports to codecov.io
- gulp-tslint: access tslint from gulp
- gulp-typescript: transpile typescript in gulp
- isparta: ES6 unit test coverage reporter
- jasmine-core: jasmine coverage reporter
- jasmine-spec-reporter: e2e coverage reporter for jasmine
- karma: unit test runner
- karma-browserify: transpile and bundle typescript in Karma
- karma-chrome-launcher: allows using chrome with Karma - chrome is used in Travis
- karma-coverage: unit test coverage reporter
- karma-jasmine: jasmine framework for Karma
- karma-mocha-reporter: mocha progress reporter for Karma
- karma-phantomjs-launcher: allows using phantom with Karma
- phantomjs-prebuilt: phantom headless browser
- protractor: e2e test runner
- tsify: typescript plugin for karma-browserify
- ts-node: transpile gulpfile
- tslint: static code analysis for typescript
- tslint-eslint-rules: eslint rules plugin for tslint
- typescript: transpile e2e tests
- typings: type definitions manager