How to run UI tests on hudson.eclipse.org server (on a server without a window manager activated by default)
I'm currently trying to move GMF-Runtime build to Tycho (following GMF-Tooling). I asked for a job on the hudson.eclipse.org server for this new fast and simple build but I encountered an issue. And I found a solution.
The issue
GMF is a graphical framework, so there are User Interface tests. Unfortunately, they failed with the following error - which you can find in .log of the workspace/.metadata folder - when you run any test on the eclipse server:
The solution
I spent some time on Google and found the solution... in several chunks. So I put them together to provide the solution here in a single piece:
- Check Run Xvnc during build (and don't bother to check take screenshot, it doesn't work)
- Add an Execute shell build action before launching your tests with metacity --replace --sm-disable & :
Simple but it's all in one place. Hope it will help you.
And - talking about help - any help on understanding why these three GMF tests are still failing is very welcome.