npm install
ng lint # check code formatting
npm run test # unit tests
+
+# run end-to-end tests using Firefox
ng e2e # end-to-end tests, be sure to set
# MOZ_HEADLESS=1 if you aren't
# running x11
+
+# run end-to-end tests using Chrome
+npm install --save-dev chromedriver # install ChromeDrive; you may
+ # need to tack on "@VERSION"
+ # to match the version of Chromium
+ # available to you
+ng e2e --env chrome # ... if you have X11
+ng e2e --env chrome-headless # ... if you don't have X11
+
+
ng build --watch # compile dev mode
ng build --configuration=production # compile production mode
---------------------------------------------------------------------
},
// To test with chrome:
// $ npm install --save-dev chromedriver
- // $ ng e2e --evn chrome
+ // $ ng e2e --env chrome
chrome: {
desiredCapabilities : {
browserName : 'chrome',
cli_args: [
]
}
+ },
+ // $ ng e2e --env chrome-headless
+ 'chrome-headless': {
+ desiredCapabilities : {
+ browserName : 'chrome',
+ alwaysMatch: {
+ acceptInsecureCerts: true,
+ },
+ chromeOptions : {
+ args: ['headless', 'no-sandbox', 'disable-gpu']
+ },
+ chromeOptions : {
+ args: ['headless', 'no-sandbox', 'disable-gpu']
+ }
+ },
+ webdriver: {
+ start_process: true,
+ server_path: '',
+ cli_args: [
+ ]
+ }
}
}
};