https://github.com/pradeep1991singh/angular-testing
angular testing with jasmine
https://github.com/pradeep1991singh/angular-testing
angular-testing jasmine protractor setup-test-environment
Last synced: 5 months ago
JSON representation
angular testing with jasmine
- Host: GitHub
- URL: https://github.com/pradeep1991singh/angular-testing
- Owner: pradeep1991singh
- Created: 2016-12-23T17:24:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-22T05:49:56.000Z (almost 9 years ago)
- Last Synced: 2025-03-20T14:56:10.414Z (8 months ago)
- Topics: angular-testing, jasmine, protractor, setup-test-environment
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# angular-testing
angular unit and end-to-end testing with jasmine
## Installation
```sh
$ npm install
$ bower install
```
## Tests
For running unit tests `jasmine`, `karma`, `karma-jasmine` needed.
For running end-to-end tests `protractor`, `webdriver` needed.
You can install them globally or locally
> unit tests
### Install jasmine, karma, chrome-launcher (locally)
```sh
$ npm install jasmine karma karma-jasmine karma-chrome-launcher --save-dev
```
> end-to-end tests
### Install protractor and webdriver (locally)
```sh
$ npm install protractor webdriver-manager --save-dev
```
### Run server (locally)
```sh
$ node node_modules/webdriver-manager/bin/webdriver-manager update
$ node node_modules/webdriver-manager/bin/webdriver-manager start
```
### Run angular dev server (optionally)
```sh
$ npm install angular-dev-server --save-dev
$ node node_modules/angular-dev-server/index.js
```
### Install protractor (globally)
```sh
$ npm install -g protractor
$ webdriver-manager update
$ webdriver-manager start
```
## Fake server
```sh
$ npm install express --save
```
## Run sample app
```sh
$ gulp
$ gulp serve
```