Update Unittests authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Angular creates for every component, service or class a unittest file with the file ending `spec.ts`. We use native Angular unittests (Angular uses Karma and Jasmine) with two additional libraries.
## Prerequisites
Google Chrome or Chromium should be installed.
## Run
To run tests use `ng test`
To run tests with code coverage use `ng test --codeCoverage` (Result will be in `/coverage`)
## Documentation
- Angular Testing: https://angular.io/guide/testing
- Spectator Library (simplifies testing): https://github.com/ngneat/spectator/blob/master/README.md
- ng-mocks (mock Components and Pipes): https://github.com/ike18t/ng-mocks/blob/master/README.md
- Specific guide for Spectator: https://github.com/ngneat/spectator/blob/master/README.md#mocking-components
\ No newline at end of file