plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
- require('karma-phantomjs-launcher'),
+ require('karma-firefox-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
- browsers: ['PhantomJS'],
+ browsers: ['ChromeHeadless','FirefoxHeadless'],
+ customLaunchers: {
+ 'FirefoxHeadless': {
+ base: 'Firefox',
+ flags: [
+ '-headless',
+ ],
+ }
+ },
singleRun: true,
files: [
'/openils/lib/javascript/md5.js',
"jasmine-spec-reporter": "^4.2.1",
"karma": "^4.4.1",
"karma-chrome-launcher": "^3.1.0",
+ "karma-firefox-launcher": "^1.2.0",
"karma-coverage-istanbul-reporter": "^2.1.0",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
- "karma-phantomjs-launcher": "^1.0.4",
"ngx-i18nsupport": "^0.17.1",
"protractor": "^5.4.2",
"ts-node": "^8.4.1",
DEVELOPER_DEBS = \
automake \
autoconf \
- libtool
+ libtool \
+ chromium \
+ firefox-esr
PACKAGER_DEBS = \
asciidoc \
DEVELOPER_DEBS = \
automake \
autoconf \
- libtool
+ libtool \
+ chromium \
+ firefox-esr
PACKAGER_DEBS = \
asciidoc \
DEVELOPER_DEBS = \
automake \
autoconf \
- libtool
+ libtool \
+ chromium \
+ firefox-esr
PACKAGER_DEBS = \
asciidoc \
DEVELOPER_DEBS = \
automake \
autoconf \
- libtool
+ libtool \
+ chromium-browser \
+ firefox
PACKAGER_DEBS = \
asciidoc \
DEVELOPER_DEBS = \
automake \
autoconf \
- libtool
+ libtool \
+ chromium-browser \
+ firefox
PACKAGER_DEBS = \
asciidoc \
"jasmine-core": "^2.99.1",
"karma": "^1.7.1",
"karma-jasmine": "^1.1.1",
- "karma-phantomjs-launcher": "^1.0.4",
+ "karma-chrome-launcher": "^3.1.0",
+ "karma-firefox-launcher": "^1.2.0",
"karma-script-launcher": "^1.0.0",
"karma-spec-reporter": "0.0.32",
"karma-story-reporter": "^0.3.1",
- "phantomjs-prebuilt": "^2.1.16",
"webpack": "^3.10.0",
"webpack-merge": "^4.1.1"
},
frameworks: ['jasmine'],
- browsers: ['PhantomJS'],
+ browsers: ['ChromeHeadless','FirefoxHeadless'],
+
+ customLaunchers: {
+ 'FirefoxHeadless': {
+ base: 'Firefox',
+ flags: [
+ '-headless',
+ ],
+ }
+ },
// web server port
port: 9876,
3. OPTIONAL: Developer additions
+
To perform certain developer tasks from a Git source code checkout,
+including the testing of the Angular web client components,
additional packages may be required. As the *root* Linux account:
+
* To install packages needed for retrieving and managing web dependencies,
+
[source,sh]
------------------------------------------------------------------------------
-# build, run tests, concat+minify
+# build, concat+minify
npm run build-prod
-npm run test
+------------------------------------------------------------------------------
++
+4. OPTIONAL: Test web client code if the <osname>-developer packages were installed
++
+[source,sh]
+------------------------------------------------------------------------------
+CHROME_BIN=/path/to/chrome npm run test
------------------------------------------------------------------------------
[[install_files_for_angular_web_staff_client]]
------------------------------------------------------------------------------
# build and run tests
ng build --prod
-npm run test
+------------------------------------------------------------------------------
++
+4. OPTIONAL: Test eg2 web client code if the <osname>-developer packages were installed
++
+[source,sh]
+------------------------------------------------------------------------------
+CHROME_BIN=/path/to/chrome npm run test
------------------------------------------------------------------------------
Configuration and compilation instructions