https://github.com/pavanpodila/unit-testing
Unit Testing techniques
https://github.com/pavanpodila/unit-testing
Last synced: 5 months ago
JSON representation
Unit Testing techniques
- Host: GitHub
- URL: https://github.com/pavanpodila/unit-testing
- Owner: pavanpodila
- Created: 2016-08-10T20:42:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-29T16:08:38.000Z (about 9 years ago)
- Last Synced: 2025-06-04T05:33:24.884Z (7 months ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### How to run
1. Clone this repo
1. Run `npm install` in the folder where you cloned
1. Run `npm start`
1. Open [http://localhost:8080](http://localhost:8080) to see the app in action
1. Run `npm test` to run the unit tests
### Works on
- Node 4.4.3
- NPM 2.15.1
# Unit Testing techniques
- [x] Plain logic
- [x] AJAX calls with `$httpBackend`
- [x] Controllers
- [x] Directives
- [x] Components
- [x] Services
- [x] Filter
- [x] Time based with `$timeout`
- [x] Testing promises with `$rootScope.apply()`
- [x] Mocking with Spies, Stubs
- [x] Mocking services with `$provide`
- [x] Data driven tests
## Tools ##
- Jasmine
- Karma
- Babel
- Babel Coverage
- Webpack
## Features of the e-Portal
- Show a dashboard of loans
- View loan detail
- Show progress of loan completion
- Add a loan
- Show sorted list of loans
- Use of `$filter` to show status of loan