cancel
Showing results for 
Search instead for 
Did you mean: 

Unit and Integrations Test in Commerce Cloud v2 (CCv2)

crynsj
Discoverer
0 Kudos

Hi,
I've configured my custom packages for which unit-, and integrationtest may be run during the build phase. However when a test fails, the build will stay succesful. Is it possible to make the build fail when a test fails?
I want to know if a test fails without going through the build log.
What are the possibilities?

gasparuhov
Member
0 Kudos

Hello crynsj, were you able to resolve this? I am faceing the same issue.

crynsj
Discoverer
0 Kudos

Hi gasparuhov . No, eventually we chose to setup a Jenkins pipeline to run tests and sonarcube.

View Entire Topic
joris_quenee
Product and Topic Expert
Product and Topic Expert

Hello crynsj

For now, build is NOT blocked when one (or more) unit test fails. If you want to automate process with orchestrator as Jenkins, you should use Cloud Portal API to trigger build and collect log.

Then your orchestrator can decide to continue the process if there's no error in build log.

If this approach/behavior doesn't fit your expectation, it is still possible to ask improvement for Cloud team through this link : https://influence.sap.com/sap/ino/#/campaign/3167 (only customer can create this request)