# ng2ionic2Unit **Repository Path**: dongge/ng2ionic2Unit ## Basic Information - **Project Name**: ng2ionic2Unit - **Description**: 基于angular2的ionic2单元测试 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-01-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #ng2ionic2Unit ## Ionic 2 Demo / Seed Project : Karma + Protractor ## Install & Start You need to be running [the latest node LTS](https://nodejs.org/en/download/) or newer ```bash cd dir npm install # or `npm run reinstall` if you get an error npm start # start the application (ionic serve) ## Run Unit Tests ```bash npm test # run unit tests ``` ## Run test-coverage ```bash npm run test-coverage # 单元覆盖率 ``` ## 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 ``` ## Run package ``` npm install -g cordova ionic cordova platform add android/ios ionic build android ``` ## author jianghuxiaohan ## Dependencies * **@Angular:** 2.2.1 * **angular-cli**: 1.0.0-beta.24 * **Ionic:** 2.0.0-rc.4