Skip to content

Latest commit

 

History

History
74 lines (57 loc) · 4.47 KB

README.md

File metadata and controls

74 lines (57 loc) · 4.47 KB

Content

This repo contains a draft enabled CAP (node) based backend that exposes an OData v4 service used by a TypeScript based Fiori Elements frontend (List Report and Object Page with a custom section controller extension).

How to run the app?

  • checkout repo
  • npm run install
  • npm run ui:mockserver (for standalone UI mock server)
  • npm run start (for integration of UI5 server into CDS server)
  • npm run ui:cap (for integration of CDS server into UI5 server)

How to run the tests?

QUnit and OPA5

  • npm run ui:test
  • Test execution report can be found in ./app/samples/target/QunitReport/report.html
  • LCOV coverage report can be found in ./app/samples/target/coverage/lcov-report/index.html
  • Cobertura coverage report can be found in ./app/samples/target/coverage/cobertura-coverage.xml
  • Junit test result report can be found in ./app/samples/target/QunitReport/junit.xml

WDI5

  • npm run e2e:test
  • Test execution report can be found in ./app/samples/target/WDI5report/report.html
  • Junit test result report can be found in ./app/samples/target/WDI5report/junit-0-(0|1).xml

What does the repo contain?

What does the repo not contain?

As the focus of this repo is on the frontend part there's no real backend implementation.

UI5 versions 1.122.x and 1.123.x

There's an issue with the FLP sandbox launchpad sources from npmjs. Hence, the launchpad generated by the preview-middleware does not work correctly in these UI5 versions. As a workaround you can use the ui5-proxy-middleware to load the ui5 sources directly from the CDN.

UI5 versions < 1.112.x

In case you use a UI5 version < 1.112.x you need to enable the overridesToOverride option (see Class Conversion documentation) in the .babelrc.json to be able to use the overrides from sap.ui.core.mvc.ControllerExtension.override.

["transform-ui5", {
"overridesToOverride": true
}]