In some SAP Commerce setups, there is an unusual problem where web unit tests occasionally fail when run with a suppressed tenant. These tests encounter random failures while creating mock classes, resulting in exceptions like java.lang.NoClassDefFoundError: Could not initialize class org.mockito.codegen.
Most part of long-running hybris projects has issues with hybris start up time. Below could be found tips on how to speed up platform start up.
OOTB hybris ant modulegen generates accelerator with integration tests, which fails if default language of host operation system is not english.
Frontend development is not staying on the same place and nowadays in every project you need to run unit tests for javascript.
OOTB hybris provides ant unittests command to run unit and integration tests, which are pretty low level and requires additional configuration to simplify run and result collection for DevOps. Below you can find configuration for buildcallbacks.xml, which you can just copy-paste into any hybris project (version 6.0+) and significantly simplify DevOps job required for setup of CI/CD pipeline.