Skip to Content
0
Oct 06, 2022 at 07:10 PM

sap-fe-mockserver and karma, any example out there?

919 Views

Hi colleagues,

I am developing fiori elements with odata v4. The fiori tooling generator creates nice test pages and the sap-fe-mockserver is much better then the old mockserver.

However when it comes to karma testing (local and in pipeline). I am a little bit lost.

Using karma-ui5 causes some problems.

The ui5.configPath ui5-local.yaml is not loading/mounting the sap-ui-core and more correctly. Karma server uses ./base/webapp/resources while fiori-tools-proxy listens to ./resources. I could add ../../../../ to all references but this looks weird. See https://answers.sap.com/questions/13665378/ui5-karma-config-404-on-ui5-resource-load.html

Does someone has a working example that uses own yaml with fiori-tools-proxy and sap-fe-mockserver?

Greetings and thanks,

Daniel