Skip to content

Crappy error message when smoketest before-hook crashes #7

@aquamoth

Description

@aquamoth

My Ubuntu 15.04 automatically upgraded Firefox to v38.0, which breaks the selenium smoke tests.
The selenium-bug is already reported to Selenium, see SeleniumHQ/selenium#437.

This issue isn't with selenium though, but with the crappy error messages in the smoke tests, and I know how you feel about crappy error messages :).

First time I run the smoke tests I get:

mattias@maas-linux-1:~/git/lets_code_javascript$ ./jake.sh loose=true smoketest
Collating client files: .
Bundling client files with Browserify: ..
Smoke testing app:


  ․․

  1 passing (2s)
  1 failing

  1) Smoke test "before all" hook:
     Uncaught Error: Failed to install profile; firefox terminated with Result(code=null, signal=SIGSEGV)
      at Error (native)
      at Array.forEach (native)
  From: Task: WebDriver.createSession()
      at src/_smoke_test.js:26:14
      at Socket.<anonymous> (src/_run_server.js:18:55)
      at readableAddChunk (_stream_readable.js:163:16)
      at Socket.Readable.push (_stream_readable.js:126:10)
      at Pipe.onread (net.js:538:20)

This message isn't the worst I've seen. At least it mentions both firefox and WebDriver. If I re-run the command though (which I often tend to do when I'm unfocused), the server on port 5000 hasn't shutdown correctly and I instead get:

mattias@maas-linux-1:~/git/lets_code_javascript$ ./jake.sh loose=true smoketest
Collating client files: .
Bundling client files with Browserify: ..
Smoke testing app:


  ․․

  1 passing (11s)
  1 failing

  1) Smoke test "before all" hook:
     Error: timeout of 10000ms exceeded. Ensure the done() callback is being called in this test.

Now it takes 10 seconds to time out and the error message is really vague. It wasn't obvious to me I suddenly had an abandoned server running on port 5000.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions