This project was generated with Angular CLI version 1.6.8.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.
Unit tests run via Karma.
First you should find your chrome browser binary
which chromium-browserThen export CHROME_BIN env variable or just use before ng test command:
CHROME_BIN=/usr/bin/chromium-browser ng test --watch=falseng test --watch=falseRun ng e2e to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
While stable chrome version will update on travis-ci this can cause to fail e2e tests on CI, with error:
This version of ChromeDriver only supports Chrome version 77To fix them, you should update webdriver and
protractor configuration according to new version
of Chrome (see current version in Travis logs).
Update in travis.yml:
webdriver-manager update --versions.chrome={{version_of_chrome}}Update protractor.conf.js:
chromeDriver: './node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_{{version_of_chrome}}'