Background:
I'm using selenium-server-2.25.0 in conjunction with J-Unit 4 to run through a handful of UI testing scenarios for my GWT app. In my IDE (Netbeans 7.2), I can right-click on my project, choose "Test", and see Firefox windows pop up all over (as they should) with the Selenium tests running as expected. From the command line, I can also run mvn integration-test
and see the same.
Goal:
I'm trying to get these tests to run headless in an Xvfb display, but I seem to be having trouble getting this to work with Maven. I can manually run export display=:2
(:2 being my Xvfb display) beforehand, and then the tests then DO run in the invisible display successfully.
Issue:
Nothing seems to change at all when I include the full <plugin>
entry from here in my pom.xml and run mvn integration-test
. I still see Windows popping up all over and the tests running not in the Xvfb display. If I take it out and run again, same results. When I change the phase from pre-integration-test
to qwertyasdf
however, Maven does complain about an invalid lifecycle phase - so I know it's not completely ignoring it, and I am editing the appropriate pom.xml.
Thanks!
target/selenium/display.properties
– Greek