Unit test and end-to-end test of Spartacus UI of SAP e-commerce cloud, as well as CI / CD related topics

JerryWang_ Wang Zixi 2021-10-14 05:47:10

unit testing

At the root of the project package.json below , Defines test related script:

Can directly npm run test:libs, Start unit tests for all libraries :

You can also manually perform unit tests for a single library , for example ng test core:

The steps of end-to-end testing are here :SAP Spartacus How to use cypress Conduct end-to-end automated testing

every time Spartacus For developers git When the client submits code , Will trigger Github workflow perform CI/CD Related processes .

You can refer to the following pull request:
https://github.com/SAP/sparta...

These codes trigger execution when submitted CI/CD Configuration of , In the project folder .github/workflows Internal maintenance , As shown in the figure below :

https://github.com/SAP/sparta...

more Jerry The original article of , All in :" Wang Zixi ":

Please bring the original link to reprint ,thank
Similar articles

2021-10-14

2021-10-14

2021-10-14

2021-10-14

2021-10-14

2021-10-14

2021-10-14