You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cloned the repo and ran grails test-app and everything worked fine. I tried the same in a headless env. and the functional tests failed, so I guess it's the fact that the env. is headless that's the cause of the failure.
I know some people have successfully run Geb tests in a headless env. using either a headless browser (e.g. PhantomJS) or by using XVFB to emulate a display. As a point of reference, it would be really helpful if these Geb tests worked in a headless env. as it's something I've struggled with it in the past (and present).
The text was updated successfully, but these errors were encountered:
ghost
changed the title
fuctional tests fail in headless env.
functional tests fail in headless env.
Sep 3, 2014
rdmueller
added a commit
to rdmueller/grails-petclinic
that referenced
this issue
Nov 27, 2014
make sure that you've installed http://http://phantomjs.org and start tests with
grails -Dgeb.env=phantomjs test-app
or - if you are using windows - with
grails "-Dgeb.env=phantomjs" test-app
Some of the tests will fail. It seems that this is because the test tries to set the object id through changing an <input type=hidden /> field. Phantomjs seems to not like this and throws an exception.
I cloned the repo and ran
grails test-app
and everything worked fine. I tried the same in a headless env. and the functional tests failed, so I guess it's the fact that the env. is headless that's the cause of the failure.I know some people have successfully run Geb tests in a headless env. using either a headless browser (e.g. PhantomJS) or by using XVFB to emulate a display. As a point of reference, it would be really helpful if these Geb tests worked in a headless env. as it's something I've struggled with it in the past (and present).
The text was updated successfully, but these errors were encountered: