Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

slimerjs fails #3

Open
nagyv opened this issue Mar 21, 2014 · 0 comments
Open

slimerjs fails #3

nagyv opened this issue Mar 21, 2014 · 0 comments

Comments

@nagyv
Copy link
Contributor

nagyv commented Mar 21, 2014

I'm trying to run my jasmine tests with the slimerjs launcher. I'm able to run slimerjs through xvfb to get a simple console.log output. My tests are running with PhantomJS too. Thus it seems like the slimerjs launcher is the problem.

Versions:
npm:

slimerJS:

  • SlimerJS 0.9.0 Standalone edition

OS:

  • Ubuntu 12.04, 100% console mode, just the required Gtk/X libs for SlimerJS to start with xvfb

The output at the bottom was generated with:

$ SLIMERJS_BIN=/path/to/xvfb-slimerjs karma start tests/karma-unit.conf.js --browsers SlimerJS --logLevel=debug

where xvfb-slimerjs is a simple wrapper

$ cat /path/to//xvfb-slimerjs 
#!/bin/bash
xvfb-run ./slimerjs $@

the karma output is:

INFO [launcher]: Starting browser SlimerJS
DEBUG [launcher]: Creating temp dir at /tmp/karma-85054306
DEBUG [launcher]: var page = require("webpage").create();

page.onConsoleMessage = function () {
    console.log.apply(console,
        Array.prototype.slice.call(arguments,0).forEach(function(item) {
            return JSON.stringify(item);
        })
    ); 
};
page.open("http://localhost:9876/?id=85054306");

DEBUG [launcher]: /mnt/data/bamboo-user/slimerjs-0.9.0/xvfb-slimerjs --debug=true /tmp/karma-85054306/capture.js
DEBUG [watcher]: Resolved files:
    /home/bamboo/bamboo-agent-home/xml-data/build-dir/VID-QUIC3-SUR/vidzor/node_modules/karma-jasmine/lib/jasmine.js
    /home/bamboo/bamboo-agent-home/xml-data/build-dir/VID-QUIC3-SUR/vidzor/node_modules/karma-jasmine/lib/adapter.js
    /home/bamboo/bamboo-agent-home/xml-data/build-dir/VID-QUIC3-SUR/vidzor/vidzor/base/static/components/jquery/jquery.js
    /home/bamboo/bamboo-agent-home/xml-data/build-dir/VID-QUIC3-SUR/vidzor/vidzor/base/static/js/session.min.js
    /home/bamboo/bamboo-agent-home/xml-data/build-dir/VID-QUIC3-SUR/vidzor/vidzor/base/static/js/browserDetect.js
    /home/bamboo/bamboo-agent-home/xml-data/build-dir/VID-QUIC3-SUR/vidzor/vidzor/base/static/js/tests/browserDetect.unit.js
DEBUG [launcher]: Process SlimerJS exitted with code 127
ERROR [launcher]: Cannot start SlimerJS

From the last few lines, it seems to me as if SlimerJS would have been launched, and it actually opened the requested files, but in the end it still exited abnormally.
Actually, when running the simple console.log script, I'm facing a similar, "SlimerJS does not exits" issue as already reported at #1.

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

No branches or pull requests

1 participant