Skip to main content

Pixwel UI - testing

Please read the UI overview before reading this. Tests are stored in /ui/test/unit/**/*Spec.js and use Jasmine, Karma and Angular Mocks.

Running tests

From within the ui directory:
npx karma start config/karma.conf.js
or
pixwel karma

Code coverage

Code coverage is generated whenever karma is run. The tests will run and then output to /coverage. For any code you work on, you should aim for 100% coverage wherever possible.
Back to docs index | UI docs index | Next page in recommended reading order >>