Testing the $#*! out of your UI
in 30 minutes
Automation
npm install --save-dev karma karma-openui5
npm install -g karma-cli
karma start
npm install --save-dev karma-qunit qunitjs
be aware of qunit version
keep in sync with your SAPUI5 version
npm install --save-dev karma-chrome-launcher
npm install --save-dev karma-coverage
npm install --save-dev karma-junit-reporter
npm install --save-dev puppeteer
karma start --browsers ChromeHeadless
// see https://github.com/karma-runner/karma-chrome-launcher
const ChromiumRevision =
require('puppeteer/package.json').puppeteer.chromium_revision;
const Downloader = require('puppeteer/utils/ChromiumDownloader');
const revisionInfo = Downloader
.revisionInfo(Downloader.currentPlatform(), ChromiumRevision);
process.env.CHROME_BIN = revisionInfo.executablePath;
"scripts": {
"test": "karma start --single-run
--browsers ChromeHeadless",
"tdd": "karma start"
}
npm test
see gist
npm install -g backstopjs
backstop init