-
Notifications
You must be signed in to change notification settings - Fork 20
Testing
jmacura edited this page May 29, 2020
·
2 revisions
The HSLayers-NG app comes preconfigured with unit tests. These are written in Jasmine, which we run with the Karma Test Runner. We provide a Karma configuration file to run them.
- the configuration can be found at
test/karma.conf.js - the unit tests are found in
test/unit/and also in component's directories as*.spec.jsfiles.
The easiest way to run the unit tests is to use the supplied npm script:
npm run test
or with live reloading
npm run test-watch
A good starting point to writing unit tests is this (a bit outdated though!) introduction to Jasmine: https://jasmine.github.io/1.3/introduction.html
HSLayers-NG uses Protractor for e2e testing.
Before each release, the codebase must be checked against obvious mistakes. It means the following:
- verify that all unit tests passes
- verify that all e2e tests passes
- manually test the installation, appearance and behaviour in...
- simple apps based on
hslayersNgConfig - fully capable apps based on custom Angular components
- simple apps based on
- ...while investigating...
- some common features
- new or updated features
Quick Links: Home ➖ App configuration ➖ Layer configuration ➖ Cesium configuration ➖ Composition schema (separate repo)
- Add data
- Compositions
- Draw
- Feature table
- Language switcher
- Layer manager
- Legend
- Measure
- Map Swipe
- Search
- Share map (permalink)
- Query (feature info)
- Save map composition
- Trip planner
- App config parameters
- Cesium config parameters
- Layer config parameters
- SCSS variables
- URL parameters