Skip to content

Instantly share code, notes, and snippets.

@antony
Created November 30, 2011 10:43
Show Gist options
  • Save antony/1408625 to your computer and use it in GitHub Desktop.
Save antony/1408625 to your computer and use it in GitHub Desktop.
Running functional tests with Xephyr
includeTargets << grailsScript("_GrailsInit")
display = ':65'
resolution = '-screen 1024x768'
target('default': "Run tests with xephyr") {
List parsedArgs = args.split() as List
exec (executable: 'Xephyr', spawn: true) {
arg(line:display)
arg(line:resolution)
}
event("ExecCommand", ['env', ["DISPLAY=${display}", 'grails']+parsedArgs, 'Xephyr Failed: Could not execute task in embedded X display'])
exec (executable:'killall') {
arg(line:'Xephyr')
}
}
@arturoherrero
Copy link

It's seems to solve the same thing that textbox by @doktor500 and @mgryszko with a different approach.

@mgryszko
Copy link

Did you try vnc4server? I think it does the same (adds a headless X server), but it allows you to connect with VNC to the server. You can watch tests being executed and record them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment