-
Notifications
You must be signed in to change notification settings - Fork 6
Unit Testing
Patrick Janssen edited this page Dec 2, 2017
·
4 revisions
For unit testing, we are using the Karma and Jasmine:
This is documented here:
The Karma-Jasmine setup is all already configure in package.json.
To install the Karma-Jasmine dependencies on your local computer, clone this repository, start GitShell in the repository root folder, and type:
- npm install
After installing, to start testing using Karma-Jasmine, start GitShell in the repository root folder and type:
- npm test
This will start the Karma testing server, which will watch your files and run tests (i.e. compile your code to .js and then run the tests using Jasmine) every time you save changes. The results of your tests are displayed in the web browser.
- To exit the Karma server, type Ctrl-C in your GitShell
The config file for karma-jasmine is here: