I was playing around with Hudson on my development computer and ran into an issue where one of my automated unit tests has to create a QApplication in order to test a subclass of QWidget. Since hudson is running without X, this fails. The error log reads unknown: cannot connect to X server
.
Is there a way for me to perform these tests automated using Hudson or a similar CI system? The library I'm using prevents me from separating this code under test from the QWidget.
Try launching some X server. Remember that it doesn't have to physically display anything--a VNC server will be enough. Then, set $DISPLAY environment variable in your hudson instance to point to the VNC server.