当前位置:网站首页>Unit test and end-to-end test of Spartacus UI of SAP e-commerce cloud, as well as CI / CD related topics

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

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

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 ":

版权声明
本文为[JerryWang_ Wang Zixi]所创,转载请带上原文链接,感谢
https://chowdera.com/2021/10/20211002145413065H.html

随机推荐