reports/ └── lcov-report/ spec/ ├── components/ ├── models/ ├── services/ ├── store/ └── util/ tooling/ └── 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:
An HTML version will also be generated:
The test pipeline will also generate an HTML report about the coverage, which looks like this:
The HTML report will be available under
/reports/lcov-report/. You can open it over
file://, no file server is needed.