Skip to content

Run DalekJs tests on Travis #162

@emdin

Description

@emdin

I cannot make my DalekJs tests work on Travis-CI using headless Chrome.

Here is my set-up:

  • Web server is running on localhost:3000
  • Dalek tests suppose to use headless Chrome (configured via xvfb)
  • Chrome driver use port 6000 (via Dalekfile.json)
  • Actual test starts from test.open('http://0.0.0.0:3000')

Here is what I got in Travis:

/home/travis/build/.../node_modules/dalekjs/lib/dalek.js:346
    this.driverEmitter.emit('killAll');
                      ^
TypeError: Cannot read property 'emit' of undefined
  at Object.Dalek._shutdown (/home/travis/build/.../node_modules/dalekjs/lib/dalek.js:346:23)
  at process.emit (events.js:107:17)
  at process._fatalException (node.js:236:26)
The command "dalek test/test.js -l 5" exited with 7.

Please advise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions