Skip to content

Testing

Philip Oliver-Paull edited this page Apr 24, 2017 · 7 revisions

Ionic 2/Typescript/Angular 2

We are using Karma and Jasmine to run our tests in the Ionic part of the project. The tests are located throughout the code as *.spec.ts files residing in the same directories as the typescript files they are testing. They are Jasmine tests collected and run via Karma CLI, as described in karma.conf.js.

A few examples: about.spec.ts, home.spec.ts, and user-provider.spec.ts

There are also files for mock services in the providers package, clearly indicated with the pattern *.mock.ts.

To run, make sure that all necessary dependencies are installed via npm and then run npm test.

Python

We are using pytest to run unit tests in the housekeeping process. These are located in [housekeeper/tests] (https://github.com/SCCapstone2/FantasyDJ/tree/master/housekeeper/tests).

Clone this wiki locally