Good afternoon, I just created an aem project based on the latest archetype.
When I press the green run button for the integration tests intellij tell me they are ignored.
The test work perfectly fine when executed with the maven command, but I want to debug them in Intellij.
I did not change anything about the project Structure.
I would highly appreciate if someone can tell me if this works for him and with what setup.
Thank you
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
You will have to pass the environment details in system properties before running.
Something like
Check this link as well https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/usi...
Hope this helps
Hi @satzlinger
not sure but you can try to unlink maven once then it automatically links it back , unlinking and then re-linking Maven in IntelliJ IDEA could potentially fix your issue with the integration tests being ignored.
Ensure that the directory containing your integration tests is configured as a test source folder in IntelliJ IDEA.
You will have to pass the environment details in system properties before running.
Something like
Check this link as well https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/usi...
Hope this helps
Thank you very much @h_kataria
This is exactly what I needed.
Here are screenshots of how I had to set it up:
Out of the box they are ignored
Adjusting the runner resulted in a proper execution
I used
-ea
-Dsling.it.instances=2
-Dsling.it.instance.url.1=http://localhost:4502
-Dsling.it.instance.runmode.1=author
-Dsling.it.instance.adminUser.1=admin
-Dsling.it.instance.adminPassword.1=admin
-Dsling.it.instance.url.2=http://localhost:4503
-Dsling.it.instance.runmode.2=publish
-Dsling.it.instance.adminUser.2=admin
-Dsling.it.instance.adminPassword.2=admin
make sure you press the rerun button so the config is used
Hi @satzlinger
What maven profile are you using when running the test
you need to check the run configuration and there need to use local as profile, similar to below maven command
mvn clean install -Plocal
Views
Likes
Replies