Firstly, because project is handled by NPM - Node package manager, we need to install dependencies for the node project:
npm install
npm run start
Our Angular application is ready on the following URL: http://localhost
TSLint checks TypeScript code for readability, maintainability, and functionality errors.
npm run lint
Unit testing is focused on testing single units. All tests are isolated.
Services, network and other resources are replaced by mocks (fake objects).
Karma and Jasmine framework are used to write all unit test in src/**.spec.ts.
npm run test
With e2e testing you can go through the GUI like a user does - functional testing.
E2E tests are powered by a Selenium web-driver and a testing library called Protractor. Protractor is an E2E test runner that can take scenario tests and run them in the browser.
The test code itself is written using Jasmine - a testing library the provides all the assertion and utility functions needed to write unit and E2E tests.
To run all tests in e2e folder, use script:
npm run e2e
Copyright 2020 Peter Patocka. Code released under the MIT license.

