An open API service indexing awesome lists of open source software.

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

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