cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Integration tests always starts the server

former_member791468
Discoverer
0 Likes
607

Hey

I'm trying to run a Integration test through the Intellij. It is working fine, but the problem is, that it is always starting a new instance(even if my server is running) and execute the test there. I tried different Hybris plugins, but it is still the same...
So, is there a config or a property or something that i need to do, so that the tests are hitting my running instance and not starting a new one? Thanks!

BR, Filip

Accepted Solutions (0)

Answers (1)

Answers (1)

christoph_probst
Active Participant
0 Likes

One possibility to achieve this is using the testweb frontend and activating hot code replacement.

- Test web introduction can be found here https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/2105/en-US/8bec615d86691014887ca1b28c88...

For hot code replacement the following possibilities are available

- JRebel -> IMO best solution https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/2105/en-US/8be5ab06866910149c83e0bd4a18...

- DCEVM -> was not able to enable it for sap commerce with java 11

- JVM Hot Swap mechanism -> basic HCR not deterministic when it really works

former_member791468
Discoverer
0 Likes

Hey Christoph,

Thanks for the answering, but i'm aware for those options.
The reason why i want to run through the IntelliJ is because it is a lot more easier to run, more intuitive, basically because of the Intellijs tools for testing and development.

I was running integration tests before and it was working fine, but now on this project for some reason it is always starting the server... and i cannot find the difference