SAP Knowledge Base Article - Preview

3665461 - junit test suites not running in sap commerce cloud

Symptom

  • Attempting to create a unit test suite using `@SuiteClasses` and `@RunWith(Suite.class)` annotations results in the suite not being executed when running all unit tests.
  • The issue occurs specifically when running tests in the pipeline, while the suite executes successfully when run locally (e.g., from IntelliJ).


Read more...

Environment

  • SAP Commerce Cloud 2211

Product

SAP Commerce Cloud all versions

Keywords

junit test suite, sap commerce cloud, @SuiteClasses, @RunWith(Suite.class), pipeline tests, junit4 support, ant recognition, empty test workaround, test execution failure, sap commerce ootb limitations , KBA , CEC-SCC-PLA-PL , Platform , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.