Unit tests

    └── lcov-report/
    ├── components/
    ├── models/
    ├── services/
    ├── store/
    └── util/
    └── unit/

Unit tests run on Karma and Mocha, and are written using Chai. Unit tests can be written for all the elements of application code, meaning services, models, components and utilities as well as Vuex code.

You can use the scripts listed in setup instructions to run tests.

Running unit tests on the command line gives you a report like this:

Unit test results on command line

An HTML version will also be generated:

Unit test results in browser

The test pipeline will also generate an HTML report about the coverage, which looks like this:

Unit test results in browser

The HTML report will be available under /reports/lcov-report/. You can open it over file://, no file server is needed.

results matching ""

    No results matching ""