Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dynamicbalaji/nginttestingdemo
Integration Testing demo for Angular application
https://github.com/dynamicbalaji/nginttestingdemo
angular angular-4 angular-cli integration-testing jasmine karma karma-jasmine
Last synced: about 1 month ago
JSON representation
Integration Testing demo for Angular application
- Host: GitHub
- URL: https://github.com/dynamicbalaji/nginttestingdemo
- Owner: dynamicbalaji
- Created: 2017-11-12T15:43:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-13T19:13:42.000Z (about 7 years ago)
- Last Synced: 2024-05-03T10:16:11.678Z (8 months ago)
- Topics: angular, angular-4, angular-cli, integration-testing, jasmine, karma, karma-jasmine
- Language: TypeScript
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NgIntTestingDemo
This project explains how to write Integration Testing suites for Angular applications.
## Topics Covered
PFB the topics covered in this project:
* Basic setup to create test cases
* Testing Property Bindings
* Testing Event Bindings
* Providing dependencies
* Getting the dependencies
* Providing Stubs
* Testing the Navigation
* Dealing with Route Params
* Testing RouterOutlet Component
* Testing routerLink
* Shallow Component tests
* Testing Attribute Directives
* Dealing with Asynchronous Operations (Promise)## Code Coverage
Use below command to check on the code coverage:
``
ng test --code-coverage
``After running this command, you will find a new folder 'coverage' will be created under project folder. Open the index.html file in that folder to see the code coverage details.
## Tech Stack
* Angular CLI - 1.5.0
* Karma - 1.7.0
* Jasmine - 2.5.53
* Typescript - 2.4.2
* RxJS - 5.5.2