Search code examples
springintegration-testingsap-commerce-cloud

Execute IntegrationTests in an already running Hybris server


My Hybris IntegrationTest classes extend the de.hybris.platform.servicelayer.ServicelayerTransactionalTest.java. When I run such a class in Eclipse using "Run As -> JUnit Test" option, a Hybris server spawns, executes that class & then shuts down. This is the behavior for every IntegrationTest class I run which is time-consuming. I was wondering is there any approach to execute these classes in an already running Hybris server so I don't have to worry about server startup time on every run ?


Solution

  • yes there is the JUnit testweb frontent with the URL /test that lists all unit/integration tests and offers a search / selection so you can execute exactly which test classes (and methods) you want.

    You can even initialize the junit tenant from that UI.

    The out of the box URL for this is: https://localhost:9002/test/

    Hope this helps :)