Skip to content

Command line usage

Use ui5-test-runner --help to display the list of options. The mapping between v1 options and v2 can be found here.

Check additional information below.

Option Mode Description Default Value
-V, --version output the version number
--capabilities ๐Ÿงช Capabilities tester for browser
-u, --url \ ๐Ÿ”— URL of the testsuite / page to test
-c, --cwd \ ๐Ÿ’ป๐Ÿ”—๐Ÿงช Set working directory current working directory
--port \ ๐Ÿ’ป๐Ÿ”—๐Ÿงช Port to use (0 to use any free one) 0
-r, --report-dir \ ๐Ÿ’ป๐Ÿ”—๐Ÿงช Directory to output test reports (relative to cwd) "report"
-pt, --page-timeout \ ๐Ÿ’ป๐Ÿ”—๐Ÿงช Limit the page execution time, fails the page if it takes longer than the timeout (0 means no timeout) 0
-f, --fail-fast [flag] ๐Ÿ’ป๐Ÿ”—๐Ÿงช Stop the execution after the first failing page false
-fo, --fail-opa-fast [flag] ๐Ÿ’ป๐Ÿ”— Stop the OPA page execution after the first failing test false
-k, --keep-alive [flag] ๐Ÿ’ป๐Ÿ”—๐Ÿงช Keep the server alive false
-l, --log-server [flag] ๐Ÿ’ป๐Ÿ”—๐Ÿงช Log inner server traces false
-p, --parallel \ ๐Ÿ’ป๐Ÿ”—๐Ÿงช Number of parallel tests executions 2
-b, --browser \ ๐Ÿ’ป๐Ÿ”—๐Ÿงช Browser instantiation command (relative to cwd or use $/ for provided ones) "$/puppeteer.js"
--browser-args \ ๐Ÿ’ป๐Ÿ”—๐Ÿงช Browser instantiation command parameters (use -- instead)
--alternate-npm-path \ ๐Ÿ’ป๐Ÿ”— Alternate NPM path to look for packages (priority: local, alternate, global)
--no-npm-install ๐Ÿ’ป๐Ÿ”—๐Ÿงช Prevent any NPM install (execution may fail if a dependency is missing)
-bt, --browser-close-timeout \ ๐Ÿ’ป๐Ÿ”—๐Ÿงช Maximum waiting time for browser close 2000
-br, --browser-retry \ ๐Ÿ’ป๐Ÿ”—๐Ÿงช Browser instantiation retries : if the command fails unexpectedly, it is re-executed (0 means no retry) 1
-oi, --output-interval \ ๐Ÿ’ป๐Ÿ”—๐Ÿงช Interval for reporting progress on non interactive output (CI/CD) (0 means no output) 30000
--offline [flag] ๐Ÿ’ป๐Ÿ”—๐Ÿงช Limit network usage (implies --no-npm-install) false
--webapp \ ๐Ÿ’ป๐Ÿ”— Base folder of the web application (relative to cwd) "webapp"
-pf, --page-filter \ ๐Ÿ’ป๐Ÿ”— Filter out pages not matching the regexp
-pp, --page-params \ ๐Ÿ’ป๐Ÿ”— Add parameters to page URL
--page-close-timeout \ ๐Ÿ’ป๐Ÿ”— Maximum waiting time for page close 250
-t, --global-timeout \ ๐Ÿ’ป๐Ÿ”— Limit the pages execution time, fail the page if it takes longer than the timeout (0 means no timeout) 0
--screenshot [flag] ๐Ÿ’ป๐Ÿ”— Take screenshots during the tests execution (if supported by the browser) true
--no-screenshot ๐Ÿ’ป๐Ÿ”— Disable screenshots
-st, --screenshot-timeout \ ๐Ÿ’ป๐Ÿ”— Maximum waiting time for browser screenshot 5000
-so, --split-opa [flag] ๐Ÿ’ป๐Ÿ”— Split OPA tests using QUnit modules false
-rg, --report-generator \ ๐Ÿ’ป๐Ÿ”— Report generator paths (relative to cwd or use $/ for provided ones) ["$/report.js"]
--progress-page \ ๐Ÿ’ป๐Ÿ”— Progress page path (relative to cwd or use $/ for provided ones) "$/report/default.html"
--coverage [flag] ๐Ÿ’ป๐Ÿ”— Enable or disable code coverage
--no-coverage ๐Ÿ’ป๐Ÿ”— Disable code coverage
-cs, --coverage-settings \ ๐Ÿ’ป๐Ÿ”— Path to a custom .nycrc.json file providing settings for instrumentation (relative to cwd or use $/ for provided ones) "$/.nycrc.json"
-ctd, --coverage-temp-dir \ ๐Ÿ’ป๐Ÿ”— Directory to output raw coverage information to (relative to cwd) ".nyc_output"
-crd, --coverage-report-dir \ ๐Ÿ’ป๐Ÿ”— Directory to store the coverage report files (relative to cwd) "coverage"
-cr, --coverage-reporters \ ๐Ÿ’ป๐Ÿ”— List of nyc reporters to use (text is always used) ["lcov","cobertura"]
-ccb, --coverage-check-branches \ ๐Ÿ’ป๐Ÿ”— What % of branches must be covered 0
-ccf, --coverage-check-functions \ ๐Ÿ’ป๐Ÿ”— What % of functions must be covered 0
-ccl, --coverage-check-lines \ ๐Ÿ’ป๐Ÿ”— What % of lines must be covered 0
-ccs, --coverage-check-statements \ ๐Ÿ’ป๐Ÿ”— What % of statements must be covered 0
-crs, --coverage-remote-scanner \ ๐Ÿ’ป๐Ÿ”— Scan for files when all coverage is requested "$/scan-ui5.js"
-s, --serve-only [flag] ๐Ÿ’ป๐Ÿ”— Serve only false
--ui5 \ ๐Ÿ’ป UI5 url "https://ui5.sap.com"
--disable-ui5 [flag] ๐Ÿ’ป Disable UI5 mapping (also disable libs) false
--libs \ ๐Ÿ’ป Library mapping (\=\ or \)
--mappings \ ๐Ÿ’ป Custom mapping (\=\(\))
--cache \ ๐Ÿ’ป Cache UI5 resources locally in the given folder (empty to disable)
--preload \ ๐Ÿ’ป Preload UI5 libraries in the cache folder (only if --cache is used)
--testsuite \ ๐Ÿ’ป Path of the testsuite file (relative to webapp, URL parameters are supported) "test/testsuite.qunit.html"
-w, --watch [flag] ๐Ÿ’ป Monitor the webapp folder and re-execute tests on change false
--start \ ๐Ÿ”— Start command (might be an NPM script or a shell command)
--start-timeout \ ๐Ÿ”— Maximum waiting time for the start command (based on when the first URL becomes available) 5000
-cp, --coverage-proxy [flag] ๐Ÿ”— [โš ๏ธ experimental] use internal proxy to instrument remote files false
-cpi, --coverage-proxy-include \ ๐Ÿ”— [โš ๏ธ experimental] urls to instrument for coverage ".*"
-cpe, --coverage-proxy-exclude \ ๐Ÿ”— [โš ๏ธ experimental] urls to ignore for coverage "/((test-)?resources\|tests?)/"
-h, --help display help for command

Meaning of option values :

  • [value] : value is optional (usually boolean)
  • <value> : value is expected
  • <value...> : more than one value can be set
  • <timeout> : expressed either as a single numeric (ms) or with the following suffixes :
  • <number>ms
  • <number>s or <number>sec for seconds
  • <number>m or <number>min for minutes

Options availability depends on the mode :

  • ๐Ÿ’ป when serving and testing (legacy mode)
  • ๐Ÿ”— when testing remote pages (--url)
  • ๐Ÿงช when testing browser capabilities (--capabilities)

For browser arguments, it is recommended to use -- and pass them after. In the configuration file, use browserArgs.