plone / plone.act

DEPRECATED Acts, not words : ACceptance Testing for Plone
2 stars 2 forks source link

Run browser in background so it doesn't steal focus while running tests #15

Closed shentonfreude closed 11 years ago

shentonfreude commented 11 years ago

When running tests, browser pops up and steals focus; this prevents you from working while the test is running. It would be better if the browser ran without stealing focus. While xvfb virtual frame buffer could be used, it would be better to avoid that complexity and cross-platform incompatibility.

datakurre commented 11 years ago

You can configure zc.recipe.testrunner to launch Xvfb and run test there. I'll create an example later.

datakurre commented 11 years ago

Oh, of course, you could just (install and) start Xvfb by yourself and set the DISPLAY environment variable to point to Xvfb before running tests (just like in .travis.yaml).

datakurre commented 11 years ago

I'm afraid that I must close this as wontfix. This is a generic Selenium testing issue that we cannot fix in plone.act.

On linux, you can hide tests completely with Xvfb already (or using new X11 session on a different display).

For OSX there's no solution I'm aware of.