Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headless chromium for linux #39

Closed
kmalakoff opened this issue Mar 9, 2015 · 2 comments
Closed

Headless chromium for linux #39

kmalakoff opened this issue Mar 9, 2015 · 2 comments

Comments

@kmalakoff
Copy link

Hi there,

We have been hitting our heads against a wall trying to get browser tests running on Jenkins with mocha and PhantomJS for our browser uploader. Basically, there is a known bug with PhantomJS where attaching a blob doesn't transfer the full file and fails to have correct content-length.

We were thinking about trying to run Chromium on linux in a headless mode to avoid the problems with PhantomJS.

We've seen your issue here and solutions here and here.

Would you be willing to upgrade this module to have a 'headless' option that runs chrome/chromium using xvfb?

@Krinkle
Copy link
Contributor

Krinkle commented Mar 26, 2015

See also #20. This can be done already by starting an Xvfb window before you call karma (or npm-test, or grunt), and exposing the relevant DISPLAY environment variable.

To support this from within Karma, it would most likely have to be done within the core Karma framework. The launcher plugins just abstract discovery of the binary and configuration of relevant command line arguments. Not creation of the temp directory or launching of the process itself.

See karma-runner/karma#1320 for shipping an Xvfb feature.

@dignifiedquire
Copy link
Member

Closing this in favor of the tracking issue karma-runner/karma#1320 as this needs to be done in core. As @Krinkle mentioned the current workaround is to use xfvb similar to how we use it for travis tests using firefox here: https://github.com/karma-runner/karma/blob/master/.travis.yml#L21-L22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants