Page History
...
Double-click your script and you're good to go!
Jetty 9 compatible IntelliJ setup
Disclaimer: This setup has only been tried on two machines so far. The procedure might need to be completed, or adapted.
In IntelliJ, go to Edit Configurations. For Tomcat, insert the following VM options:
Code Block | ||||
---|---|---|---|---|
| ||||
-Xms128M -Xmx1048M -Djava.awt.headless=true -Dfile.encoding=UTF-8 -XX:MaxPermSize=256m -DseleniumServerHostName=192.168.56.101 -DcontainerHostName=192.168.56.1 |
Also, in the Deployment tab, add two artifacts:
- magnolia-test-webapp:war exploded, with 'Application context' set to /magnoliaTest
- magnolia-test-public-webapp:war exploded, with 'Application context' set to /magnoliaTestPublic
In that same window, select JUnit under Defaults in the left pane. Insert the following VM options:
Code Block | ||||
---|---|---|---|---|
| ||||
-ea -DseleniumServerHostName=192.168.56.101 -DcontainerHostName=192.168.56.1 -DcontainerRootURL=http://192.168.56.1:8080/ |
Next step is to clean and rebuild both instances:
Code Block | ||
---|---|---|
| ||
cd ce/magnolia-integration-tests/magnolia-test-public-webapp/; mvn clean install; rm -rf overlays
cd ce/magnolia-integration-tests/magnolia-test-webapp/; mvn clean install; rm -rf overlays |
Once done, go in the 'Maven projects' sidebar in the IDE (on the top right), and click on 'Reimport all Maven projets' (blue circular arrow).
Then
- Start
- Tomcat from the IDE
selenium-server.sh on the VM
- Make sure that:
- Both exploded wars are deployed at Tomcat startup (check out the log)
- http://localhost:8080/magnoliaTest can be accessed on the host machine
- http://192.168.56.1:8080 can be accessed from the VM
- Run the magnolia installs at:
- Run a test from the IDE
- Repeat the whole process if the setup breaks