Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

build jsdom capybara driver #6

@sfcgeorge

Description

@sfcgeorge

JSDom is a DOM implementation that works in any JS runtime (mini_racer perhaps) and can be used for doing functional testing without a browser. I'm thinking this would be faster and more reliable than headless-chrome et al.

Really this wouldn't be a Hyperloop specific tool, more just another Capybara driver somewhere between Rack and Selenium in capabilities.

Looking at the Capybara driver base class it looks like it would be surprisingly easy to implement. I'm thinking of giving it a go when I find the time but opening an issue here anyway for reference and thoughts.

Testing framework options - all would just be different Capybara drivers:

  • chrome-headless standard Capybara setup: full functionality, slow, buggy
  • Hyperloop remote browser: full functionality, simple, better debugging, slow
  • JSDom browserless (this issue): speed, full DOM & JS, fast, no rendering
  • React Test Renderer: fastest unit tests, not acceptance tests

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