Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update configure-an-sap-fiori-for-the-abap-platform-job-in-the-job-editor-4c26bfb.md #5

Merged
merged 6 commits into from
Apr 11, 2024

Conversation

longieirl
Copy link
Contributor

Changes to support adding Karma to a SAPUI5 Project.

…itor-4c26bfb.md

Changes to support adding Karma to a SAPUI5 Project.
Copy link

cla-assistant bot commented Apr 5, 2024

CLA assistant check
All committers have signed the CLA.

@SarahLendle
Copy link
Contributor

Hi @longieirl! Thank you for your feedback! We’ll look into it and come back to you if we have any questions.


- Google Chrome installed, runnung headless Chrome is a way to run the Chrome browser in a headless environment without the full browser UI.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if we need to mention this point here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mentioned this since it wont run on BAS.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the sense that you would run it locally and in the CI/CD service, but not on BAS? That is why one should have Chrome installed locally?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get the point. However, in the CI/CD service documentation we usually only mention the prerequisites, which are needed to execute the test in the service and not in other SAP tools, like BAS. @SarahLendle : correct me if I'm wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kaylinche should this comment be removed then? I only mentioned it in some cases, developers expect this all to work on any of the SAP tooling being provided to them.

},
singleRun: true,
proxies: {
'/base/webapp/resources': 'http://127.0.0.1:' + config.port + '/resources',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to add the proxy config for the minimal setup?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proxies are required as the app is starting up using the config of ui5.yaml or if the mock server is installed, using ui5-mock.yaml which spins up a local preview proxy to handle the URI routing and mocking of API requests.

- In your repository, you have an SAPUI5/SAP Fiori project. See [Create an SAP Fiori Project](https://help.sap.com/viewer/9d1db9835307451daa8c930fbd9ab264/Cloud/en-US/46664de4d6944471b6c29a0681bfd0fc.html).


- In your repository, you have an SAPUI5/SAP Fiori project. See [Create an SAP Fiori Project](https://developers.sap.com/tutorials/appstudio-fioriapps-create.html).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you test this app with cicd and did it work out of the box with the below mentioned config?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app settings was tested using a customers CI/CD job and using a SAP FIori tools app.

@srinikitha09
Copy link

In general it looks good to me. @kaylinche @o-liver do you have any concerns?

Copy link
Contributor

@devinea devinea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @longieirl the updates look good.
I've added one suggestion.

…the-job-editor-4c26bfb.md

Co-authored-by: Austin Devine <devinea@users.noreply.github.com>
Copy link
Contributor

@o-liver o-liver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this! Looks good. Just have some minor suggestions.


- Google Chrome installed, runnung headless Chrome is a way to run the Chrome browser in a headless environment without the full browser UI.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the sense that you would run it locally and in the CI/CD service, but not on BAS? That is why one should have Chrome installed locally?

longieirl and others added 2 commits April 8, 2024 09:19
…the-job-editor-4c26bfb.md

Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
…the-job-editor-4c26bfb.md

Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com>
Copy link
Contributor

@dimitrij-afonitschkin dimitrij-afonitschkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for me.
Code coverage configuration is now missing, but it is usually not really requiring at the starting point.

…the-job-editor-4c26bfb.md

Co-authored-by: dimitrij-afonitschkin <131276293+dimitrij-afonitschkin@users.noreply.github.com>
@longieirl
Copy link
Contributor Author

Yes, I left out code coverage as its not required, once they have a working job they can easily introduce the coverage configuration. There are now links to the relevant karma sites that they can reference if this becomes a requirement.

…the-job-editor-4c26bfb.md

Co-authored-by: Austin Devine <devinea@users.noreply.github.com>
@SarahLendle SarahLendle added contribution Valuable Contribution type/examples-samples Related to existing examples/samples, or request for new examples/samples. labels Apr 11, 2024
Copy link

sap-doc-bot bot commented Apr 11, 2024

Thank you for your valuable content contribution, @longieirl! So that we can recognize your contribution in SAP Community, please tell us your SAP Community profile URL in a reply to this comment; don't include any other text, just the URL on its own, like this:

https://people.sap.com/your-user-name

Thanks!

@SarahLendle SarahLendle merged commit a6dcfc5 into SAP-docs:main Apr 11, 2024
5 checks passed
@o-liver
Copy link
Contributor

o-liver commented Apr 12, 2024

@longieirl As karma is deprecated, do you have any recommendation what could be used as an alternative test runner?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution Valuable Contribution type/examples-samples Related to existing examples/samples, or request for new examples/samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants