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